Module:Graph/doc: Difference between revisions

Content deleted Content added
supposed to wrap Undid revision 767645398 by DMacks (talk)
No edit summary
Line 36:
* '''xAxisTitle''' and '''yAxisTitle''': captions of the x and y axes
* '''xAxisMin''', '''xAxisMax''', '''yAxisMin''', and '''yAxisMax''': minimum and maximum values of the x and y axes
* '''xAxisFormat''' and '''yAxisFormat''': changes the formatting of the axis labels. Supported values are listed at https://github.com/mbostockd3/d3-3.x-api-reference/wikiblob/master/Formatting.md#numbers for numbers and https://github.com/mbostockd3/d3-3.x-api-reference/blob/wikimaster/Time-Formatting.md for date/time. For example, the format <tt>%</tt> can be used to output percentages.
* '''xType''' and '''yType''': Data types of the values, e.g. <tt>integer</tt> for integers, <tt>number</tt> for real numbers, <tt>date</tt> for dates (e.g. YYYY/MM/DD), and <tt>string</tt> for ordinal values.
* '''x''': the x-values as a comma-separated list
Line 44:
* '''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 <tt>name1:value1, name2:value2</tt>:
** '''format''': Format the output according to https://github.com/mbostockd3/d3-3.x-api-reference/wikiblob/master/Formatting.md#numbers for numbers and https://github.com/mbostockd3/d3-3.x-api-reference/wikiblob/master/Time-Formatting.md for date/time.
** '''fontcolor''': text color
** '''fontsize''': text size