Editing Module:Graph/doc
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | Module with helper functions for the [ | + | Module with helper functions for the [[Extension:Graph|Graph]] extension. |
== Functions for templates == | == Functions for templates == | ||
Line 37: | Line 37: | ||
* '''legend:''' show legend (only works in case of multiple data series) | * '''legend:''' show legend (only works in case of multiple data series) | ||
* '''y1Title, y2Title,''' …: defines the label of the respective data series in the legend | * '''y1Title, y2Title,''' …: defines the label of the respective data series in the legend | ||
− | |||
* '''linewidth:''' line width for line charts or distance between the pie segments for pie charts | * '''linewidth:''' line width for line charts or distance between the pie segments for pie charts | ||
* '''showValues:''' Additionally, output the y values as text. (Currently, only (non-stacked) bar and pie charts are supported.) The output can be configured used the following parameters provided as <code>name1:value1, name2:value2</code>: | * '''showValues:''' Additionally, output the y values as text. (Currently, only (non-stacked) bar and pie charts are supported.) The output can be configured used the following parameters provided as <code>name1:value1, name2:value2</code>: | ||
Line 54: | Line 53: | ||
'''Note to developers:''' New functionality can be tested with the [https://vega.github.io/vega-editor/index.html?mode=vega Vega Editor], that also contains a large amount of example code. | '''Note to developers:''' New functionality can be tested with the [https://vega.github.io/vega-editor/index.html?mode=vega Vega Editor], that also contains a large amount of example code. | ||
− | |||
− | |||
− |