Template:Line chart/doc

Note: Template:Graph:Chart is an alternative template that may produce higher-quality charts.

This template allows the creation of line charts with the following limitations:
 * Maximum number of data series : 10
 * Maximum number of x-values : 25

It is based on the extension EasyTimeline and has been copied from fr:Modèle:Graphique polygonal.

Layout parameters
The following parameters are optional:
 * : width in pixels of the chart (default: 500)
 * : height in pixels of the chart (default: 350)
 * : margin in pixels between the top of the image and the top of the drawing area (default: 10)
 * : margin in pixels between the bottom of the image and the bottom of the drawing area (default: 20)
 * : margin in pixels between the right of the image and the right of the drawing area (default: 10)
 * : margin in pixels between the left of the image and the left of the drawing area (default: 30)

Form and color parameters
The following parameters are optional: Color can be described with one of the keywords listed in the EasyTimeline documentation, or in the format, where red, green and blue are values from 0 to 1. Refer to the documentation to convert web colors into this format.
 * : Background color (default: white).
 * : Color of the primary lines of the ordinate scale (default: dark gray).
 * : Color of the secondary lines of the ordinate scale (default: light gray).
 * to : Color of each line of data series (default: red, blue, green, yelloworange, purple, magenta, orange, lavender, powderblue, brightgreen).
 * to  : Thickness of each line of data series, from 0.1 (very thin) to 10 (very thick). Default: 0.8

Data series parameters

 * : Value xx (from 01 to 25) of the series aa (from 01 to 10). The subsequent value must be between 0 and the parameter  (see below).
 * Example:   means: "The first value (at x-axis position 01) of the fifth series (05) is 25".
 * Note: X-axis values may be omitted. For example, if values for S01V01 and S01V03 are provided, but not for S01V02, a direct line between the x-axis value at 1 and at 3 is drawn.
 * : Determines whether points symbolizing the x-axis value of the data are to be added to the graph.  means that such points are added for all data series. All other values of the parameter are ignored.

Axis parameters

 * : Interval between each principal subdivision of the y-axis. Mandatory.
 * : Interval between each secondary subdivision of the y-axis (if the parameter  is given a value of  ).
 * : number of values on the x-axis. Mandatory.
 * to : the labels (text) of the x-axis values. The number of these parameters that is set must be equal to the value   . Default value: a number between 1 and 25.
 * : Maximum value on the y-axis. Mandatory.
 * : Minimum value on the y-axis. Default is zero.

Example
The following code:

{{legend|red|Series 1}} {{legend|blue|Series 2}} {{legend|green|series 3}} renders:

{{legend|red|Series 1}} {{legend|blue|Series 2}} {{legend|green|Series 3}}

Limitations

 * The magic word formatnum cannot be used to format the x-axis values.
 * There is no alternate text for accessibility purposes.