Template:Graph:Chart political/doc

This template is a wrapper for Template:Graph:Chart with party colors and short names from Module:Political party.

Usage
The syntax for this template is identical to Template:Graph:Chart, with one difference. If you use y1Party instead of y1Title then title is set to the party short name, and the color for the line is set to the party color. All the other parameters are pass through to Template:Graph:Chart unchanged. To override a particular title or color, just manually specify it in the inputs.

Opinion polling
In this example, all the titles and colors are determined by Module:Political party which results in

Override title and color
To override the title and colors for the Reform Party, add to the first example, which results in