Template:ChartColors/doc

This template displays standard color palettes: Category20 and Plotter. These color palettes can be used for statistical diagrams.

To translate or review the translation of the module to your language, edit carefully Data:I18n/ChartColors.tab.

Syntax


The number of colors must be from 1 to 20 (Categ20) or 26 (Plotter).

Show the color number is an optional parameter, with two values: "-" the color number and "a" with the degree of transparency (alpha channel) added at the end of the number and always it will be "ff." It is only interesting to add the color for the map coloring.

Template data
{       "description": "Show colors of two standard palettes", "params": { "1": {                       "label": "Palette name", "description": "Name of the palette to use", "type": "line", "required": true },               "2": {                        "label": "Number of colors", "description": "The number of colors to show on the palette, from 1 to 20 (Categ20) or 26 (Plotter)", "type": "number", "required": true },               "3": {                        "label": "Show color number", "description": "Write the color number after the box: - (only number) or (with alpha channel)", "type": "number", "required": false }       } }