Content deleted Content added
m und -> and |
fix links |
||
Line 33:
* '''type''': type of the chart: <tt>line</tt> for [[:en:line chart|line chart]]s, <tt>area</tt> for [[:en:area chart|area chart]]s, and <tt>rect</tt> for (column) [[:en:bar chart|bar chart]]s, and <tt>pie</tt> for [[:en:pie chart|pie chart]]s. Multiple series can stacked using the <tt>stacked</tt> prefix, e.g. <tt>stackedarea</tt>.
* '''interpolate''': [[:en:interpolation|interpolation]] method for line and area charts. It is recommended to use <tt>monotone</tt> for a [[:en:monotone cubic interpolation|monotone cubic interpolation]] – further supported values are listed at https://github.com/vega/vega/wiki/Marks#area.
* '''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
* '''xAxisFormat''' and '''yAxisFormat''': changes the formatting of the axis labels. Supported values are listed at https://github.com/mbostock/d3/wiki/Formatting and https://github.com/mbostock/d3/wiki/Time-Formatting. 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/mbostock/d3/wiki/Formatting#numbers for numbers and https://github.com/mbostock/d3/wiki/Time-Formatting for date/time.
** '''fontcolor''': text color
** '''fontsize''': text size
|