Module:ChartColors/doc

From IxWiki
Jump to navigation Jump to search

This is the documentation page for Module:ChartColors

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}} Lua error: bad argument #1 to "get" (not a valid title).
{{ChartColors|Categ20|9}} Lua error: bad argument #1 to "get" (not a valid title).
{{#invoke:ChartColors|ShowColors|Categ20|3|-}} Lua error: bad argument #1 to "get" (not a valid title).
{{#invoke:ChartColors|ShowColors|Categ20|3|a}} Lua error: bad argument #1 to "get" (not a valid title).
{{#invoke:ChartColors|ShowColors|Plotter|5}} Lua error: bad argument #1 to "get" (not a valid title).
{{ChartColors|Plotter|20}} Lua error: bad argument #1 to "get" (not a valid title).

Function Legends

{{#invoke:ChartColors|Legends|Categ20|5|2}}

produces:

Lua error in Module:ChartColors at line 39: assign to undeclared variable 'MaxN'.


{{#invoke:ChartColors|Legends|Categ20|3|1|One|Two|Three}}

produces:

Lua error in Module:ChartColors at line 39: assign to undeclared variable 'MaxN'.