Module:Graph/doc: Difference between revisions

Content deleted Content added
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, it'sthe symbol size of symbol, (default 2.5.) may be defined for each series of data with csvseries, eg.: <code>showSymbols=1, 2, 3, 4</code>
* '''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'''
** '''vAnnotationsLinevAnnotatonsLine''' and '''hAnnotationsLinehAnnotatonsLine''': display vertical or horizontal annotation lines on specific values e.g. <code>hAnnotationsLinehAnnotatonsLine=4, 5, 6</code>
** '''vAnnotationsLabelvAnnotatonsLabel''' and '''hAnnotationsLabelhAnnotatonsLabel''': display vertical or horizontal annotation labels for lines e.g. <code>hAnnotationLabelhAnnotatonsLabel = label1, label2, label3</code>
}}{{#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, chartTemplate and plot templatesCollection]]
}}</includeonly>
}}<noinclude>
}}
[[Category:Module documentation pages]]
</noinclude>