Content deleted Content added
Kwamikagami (talk | contribs) No edit summary |
fix docs |
||
(6 intermediate revisions by 6 users not shown) | |||
Line 1:
{{#if:{{{1|}}}||<!-- Parts not to be transcluded from the wrapper templates -->
{{High-use}}
{{Module rating |protected}}
{{Lua sidebar}}
Line 27 ⟶ 28:
}}{{#if:{{{1|}}}||
* '''formatjson:''' format JSON object for better legibility
* '''title''': The title of the graph, used by [[User:GraphBot]] when converting.
* '''name''': The name of the graph, required by [[User:GraphBot]] to convert the graph.
=== <code>chart</code> ===
Line 51 ⟶ 54:
* '''linewidth''': line width for line charts or distance between the pie segments for pie charts. Setting to 0 with <code>type=line</code> creates a scatter plot.
* '''linewidths''': different line widths may be defined for each series of data with csv, if set to 0 with "showSymbols" results with points graph, eg.: <code>linewidths=1, 0, 5, 0.2</code>
* '''showSymbols''': show symbol on data point for line graphs, if a number is provided,
* '''symbolsShape''': custom shape for symbol: circle, x, square, cross, diamond, triangle_up, triangle_down, triangle_right, triangle_left. May be defined for each series of data with csv, eg.: <code>symbolsShape= circle, cross, square</code>
* '''symbolsNoFill''': if true symbol will be without fill (only stroke),
Line 64 ⟶ 67:
* '''xGrid''' and '''yGrid''': display grid lines on the x and y axes.
* '''Annotations'''
** '''
** '''
}}{{#if:{{{1|}}}||
* '''formatjson''': format JSON object for better legibility
* '''title''': The title of the graph, used by [[User:GraphBot]] when converting.
* '''name''': The name of the graph, required by [[User:GraphBot]] to convert the graph.
=== Template wrappers ===
Line 81 ⟶ 86:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Graph
}}</includeonly>
}}<noinclude>
[[Category:Module documentation pages]]
</noinclude>
|