మాడ్యూల్:ChartColors/doc
స్వరూపం
This is a documentation subpage for మాడ్యూల్:ChartColors. It may contain usage information, categories and other content that is not part of the original మాడ్యూల్ page. |
Used by {{ChartColors}} and {{ChartColorLegends}}
To translate or review the translation of the module to your language, edit carefully Data:I18n/ChartColors.tab.
Function ShowColors
[మార్చు]Code | Result |
---|---|
{{#invoke:ChartColors|ShowColors|Categ20|5}} |
|
{{ChartColors|Categ20|9}} |
|
{{#invoke:ChartColors|ShowColors|Categ20|3|-}} |
#1f77b4 #ff7f0e #2ca02c |
{{#invoke:ChartColors|ShowColors|Categ20|3|a}} |
#1f77b4ff #ff7f0eff #2ca02cff |
{{#invoke:ChartColors|ShowColors|Plotter|5}} |
|
{{ChartColors|Plotter|20}} |
Function Legends
[మార్చు]{{#invoke:ChartColors|Legends|Categ20|5|2}}
produces:
Lua error in మాడ్యూల్:ChartColors at line 39: assign to undeclared variable 'MaxN'.
{{#invoke:ChartColors|Legends|Categ20|3|1|One|Two|Three}}
produces:
Lua error in మాడ్యూల్:ChartColors at line 39: assign to undeclared variable 'MaxN'.