1,340 bytes added
, 20:56, 15 July 2021
Used by '''{{tl|ChartColors}}''' and '''{{tl|ChartColorLegends}}'''
To translate or review the translation of the module to your language, edit carefully [[:Commons:Data:I18n/ChartColors.tab|Data:I18n/ChartColors.tab]].
===Function ShowColors===
{| class="wikitable"
|-
! Code !! Result
|-
| <code><nowiki>{{#invoke:ChartColors|ShowColors|Categ20|5}}</nowiki></code> || {{#invoke:ChartColors|ShowColors|Categ20|5}}
|-
| <code><nowiki>{{ChartColors|Categ20|9}}</nowiki></code> || {{ChartColors|Categ20|9}}
|-
| <code><nowiki>{{#invoke:ChartColors|ShowColors|Categ20|3|-}}</nowiki></code> || {{#invoke:ChartColors|ShowColors|Categ20|3|-}}
|-
| <code><nowiki>{{#invoke:ChartColors|ShowColors|Categ20|3|a}}</nowiki></code> || {{#invoke:ChartColors|ShowColors|Categ20|3|a}}
|-
| <code><nowiki>{{#invoke:ChartColors|ShowColors|Plotter|5}}</nowiki></code> || {{#invoke:ChartColors|ShowColors|Plotter|5}}
|-
| <code><nowiki>{{ChartColors|Plotter|20}}</nowiki></code> || {{ChartColors|Plotter|20}}
|-
|}
===Function Legends===
<pre>
{{#invoke:ChartColors|Legends|Categ20|5|2}}
</pre>
produces:
{{#invoke:ChartColors|Legends|Categ20|5|2}}
<pre>
{{#invoke:ChartColors|Legends|Categ20|3|1|One|Two|Three}}
</pre>
produces:
{{#invoke:ChartColors|Legends|Categ20|3|1|One|Two|Three}}
<includeonly>
[[Category:Modules for general use]]
</includeonly>