Module:Graph/doc: Difference between revisions

Content deleted Content added
No edit summary
Indicating that '''yAxisMin''' and '''yAxisMax''' are not yet supported for bar charts
Line 35:
* '''colors''': color palette of the chart as a comma-separated list of colors. The color values must be given either as <tt>#rgb</tt>/<tt>#rrggbb</tt>/<tt>#aarrggbb</tt> or by a [[:en:Web colors#X11 colour names|CSS color name]]. For <tt>#aarrggbb</tt> the <tt>aa</tt> component denotes the [[:en:alpha channel|alpha channel]], i.e. FF=100% opacity, 80=50% opacity/transparency, etc. (The default color palette is [http://github.com/d3/d3-scale/blob/master/README.md#schemeCategory10 <tt>category10</tt>]).
* '''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 (not yet supported for bar charts)
* '''xAxisFormat''' and '''yAxisFormat''': changes the formatting of the axis labels. Supported values are listed at https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#numbers for numbers and https://github.com/d3/d3-3.x-api-reference/blob/master/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.