Template:BrewerColors/doc

This template shows the Brewer colors. Based on specifications and designs developed by Cynthia Brewer. These color palettes can be used for statistical diagrams and for maps.

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

Syntax


The number of colors must be from 3 to 9 or 12, according to the palette.

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.

Brewers color palettes
Valid names and full color representation for each palette. Moving the mouse cursor over each box the color number appears. Sequential (1-9)


 * YlGn
 * YlGnBu
 * GnBu
 * BuGn
 * PuBuGn
 * PuBu
 * BuPu
 * RdPu
 * PuRd
 * OrRd
 * YlOrRd
 * YlOrBr
 * Purples
 * Blues
 * Greens
 * Oranges
 * Reds
 * Greys

Divergent (1-11)


 * PuOr
 * BrBG
 * PRGn
 * PiYG
 * RdBu
 * RdGy
 * RdYlBu
 * Spectral
 * RdYlGn

Qualitative (1-8/12)


 * Accent
 * Dark2
 * Paired
 * Pastel1
 * Pastel2
 * Set1
 * Set2
 * Set3

Template data
{       "description": "Show colors of Brewer 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 3 to 9/12", "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 }       } }