Template:Graph:Chart political
![]() | This template uses Lua: |
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.
Examples
Opinion polling
In this example, all the titles and colors are determined by Module:Political party <syntaxhighlight lang="wikitext"><graph>{"legends":[{"properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"Party","fill":"color"}],"scales":[{"type":"time","name":"x","domain":{"data":"chart","field":"x"},"range":"width","zero":false},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#9999ff","#d71920","#f4a460","#87cefa","#3cb371"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"interpolate":{"value":"basis"},"strokeWidth":{"value":2.5}}},"type":"line"},{"properties":{"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"size":{"value":50},"fill":{"scale":"color","field":"series"},"stroke":{"scale":"color","field":"series"},"shape":{"value":"circle"},"strokeWidth":{"value":0}}},"type":"symbol"}],"from":{"data":"chart","transform":[{"groupby":["series"],"type":"facet"}]}}],"height":200,"axes":[{"type":"x","title":"","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"align":{"value":"right"},"angle":{"value":-40},"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"support","scale":"y","format":"%","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"number","x":"date"},"type":"json"},"name":"chart","values":[{"y":0.35,"series":"PC","x":"1993/09/9"},{"y":0.36,"series":"PC","x":"1993/09/14"},{"y":0.35,"series":"PC","x":"1993/09/20"},{"y":0.3,"series":"PC","x":"1993/09/25"},{"y":0.31,"series":"PC","x":"1993/09/26"},{"y":0.28,"series":"PC","x":"1993/09/26"},{"y":0.25,"series":"PC","x":"1993/09/30"},{"y":0.26,"series":"PC","x":"1993/10/02"},{"y":0.22,"series":"PC","x":"1993/10/08"},{"y":0.22,"series":"PC","x":"1993/10/16"},{"y":0.21,"series":"PC","x":"1993/10/19"},{"y":0.18,"series":"PC","x":"1993/10/22"},{"y":0.16,"series":"PC","x":"1993/10/22"},{"y":0.1604,"series":"PC","x":"1993/10/25"},{"y":0.37,"series":"Liberal","x":"1993/09/9"},{"y":0.33,"series":"Liberal","x":"1993/09/14"},{"y":0.35,"series":"Liberal","x":"1993/09/20"},{"y":0.37,"series":"Liberal","x":"1993/09/25"},{"y":0.36,"series":"Liberal","x":"1993/09/26"},{"y":0.34,"series":"Liberal","x":"1993/09/26"},{"y":0.39,"series":"Liberal","x":"1993/09/30"},{"y":0.38,"series":"Liberal","x":"1993/10/02"},{"y":0.37,"series":"Liberal","x":"1993/10/08"},{"y":0.4,"series":"Liberal","x":"1993/10/16"},{"y":0.39,"series":"Liberal","x":"1993/10/19"},{"y":0.43,"series":"Liberal","x":"1993/10/22"},{"y":0.44,"series":"Liberal","x":"1993/10/22"},{"y":0.4124,"series":"Liberal","x":"1993/10/25"},{"y":0.08,"series":"NDP","x":"1993/09/9"},{"y":0.08,"series":"NDP","x":"1993/09/14"},{"y":0.06,"series":"NDP","x":"1993/09/20"},{"y":0.08,"series":"NDP","x":"1993/09/25"},{"y":0.07,"series":"NDP","x":"1993/09/26"},{"y":0.07,"series":"NDP","x":"1993/09/26"},{"y":0.06,"series":"NDP","x":"1993/09/30"},{"y":0.08,"series":"NDP","x":"1993/10/02"},{"y":0.08,"series":"NDP","x":"1993/10/08"},{"y":0.07,"series":"NDP","x":"1993/10/16"},{"y":0.06,"series":"NDP","x":"1993/10/19"},{"y":0.07,"series":"NDP","x":"1993/10/22"},{"y":0.07,"series":"NDP","x":"1993/10/22"},{"y":0.0688,"series":"NDP","x":"1993/10/25"},{"y":0.08,"series":"BQ","x":"1993/09/9"},{"y":0.1,"series":"BQ","x":"1993/09/14"},{"y":0.11,"series":"BQ","x":"1993/09/20"},{"y":0.1,"series":"BQ","x":"1993/09/25"},{"y":0.11,"series":"BQ","x":"1993/09/26"},{"y":0.12,"series":"BQ","x":"1993/09/26"},{"y":0.12,"series":"BQ","x":"1993/09/30"},{"y":0.12,"series":"BQ","x":"1993/10/02"},{"y":0.12,"series":"BQ","x":"1993/10/08"},{"y":0.13,"series":"BQ","x":"1993/10/16"},{"y":0.14,"series":"BQ","x":"1993/10/19"},{"y":0.14,"series":"BQ","x":"1993/10/22"},{"y":0.12,"series":"BQ","x":"1993/10/22"},{"y":0.1352,"series":"BQ","x":"1993/10/25"},{"y":0.1,"series":"Reform","x":"1993/09/9"},{"y":0.11,"series":"Reform","x":"1993/09/14"},{"y":0.11,"series":"Reform","x":"1993/09/20"},{"y":0.13,"series":"Reform","x":"1993/09/25"},{"y":0.13,"series":"Reform","x":"1993/09/26"},{"y":0.15,"series":"Reform","x":"1993/09/26"},{"y":0.17,"series":"Reform","x":"1993/09/30"},{"y":0.14,"series":"Reform","x":"1993/10/02"},{"y":0.18,"series":"Reform","x":"1993/10/08"},{"y":0.16,"series":"Reform","x":"1993/10/16"},{"y":0.17,"series":"Reform","x":"1993/10/19"},{"y":0.18,"series":"Reform","x":"1993/10/22"},{"y":0.19,"series":"Reform","x":"1993/10/22"},{"y":0.1869,"series":"Reform","x":"1993/10/25"}]}],"width":350}</graph> </syntaxhighlight> which results in <graph>{"legends":[{"properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"Party","fill":"color"}],"scales":[{"type":"time","name":"x","domain":{"data":"chart","field":"x"},"range":"width","zero":false},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#9999ff","#d71920","#f4a460","#87cefa","#3cb371"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"interpolate":{"value":"basis"},"strokeWidth":{"value":2.5}}},"type":"line"},{"properties":{"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"size":{"value":50},"fill":{"scale":"color","field":"series"},"stroke":{"scale":"color","field":"series"},"shape":{"value":"circle"},"strokeWidth":{"value":0}}},"type":"symbol"}],"from":{"data":"chart","transform":[{"groupby":["series"],"type":"facet"}]}}],"height":200,"axes":[{"type":"x","title":"","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"align":{"value":"right"},"angle":{"value":-40},"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"support","scale":"y","format":"%","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"number","x":"date"},"type":"json"},"name":"chart","values":[{"y":0.35,"series":"PC","x":"1993/09/9"},{"y":0.36,"series":"PC","x":"1993/09/14"},{"y":0.35,"series":"PC","x":"1993/09/20"},{"y":0.3,"series":"PC","x":"1993/09/25"},{"y":0.31,"series":"PC","x":"1993/09/26"},{"y":0.28,"series":"PC","x":"1993/09/26"},{"y":0.25,"series":"PC","x":"1993/09/30"},{"y":0.26,"series":"PC","x":"1993/10/02"},{"y":0.22,"series":"PC","x":"1993/10/08"},{"y":0.22,"series":"PC","x":"1993/10/16"},{"y":0.21,"series":"PC","x":"1993/10/19"},{"y":0.18,"series":"PC","x":"1993/10/22"},{"y":0.16,"series":"PC","x":"1993/10/22"},{"y":0.1604,"series":"PC","x":"1993/10/25"},{"y":0.37,"series":"Liberal","x":"1993/09/9"},{"y":0.33,"series":"Liberal","x":"1993/09/14"},{"y":0.35,"series":"Liberal","x":"1993/09/20"},{"y":0.37,"series":"Liberal","x":"1993/09/25"},{"y":0.36,"series":"Liberal","x":"1993/09/26"},{"y":0.34,"series":"Liberal","x":"1993/09/26"},{"y":0.39,"series":"Liberal","x":"1993/09/30"},{"y":0.38,"series":"Liberal","x":"1993/10/02"},{"y":0.37,"series":"Liberal","x":"1993/10/08"},{"y":0.4,"series":"Liberal","x":"1993/10/16"},{"y":0.39,"series":"Liberal","x":"1993/10/19"},{"y":0.43,"series":"Liberal","x":"1993/10/22"},{"y":0.44,"series":"Liberal","x":"1993/10/22"},{"y":0.4124,"series":"Liberal","x":"1993/10/25"},{"y":0.08,"series":"NDP","x":"1993/09/9"},{"y":0.08,"series":"NDP","x":"1993/09/14"},{"y":0.06,"series":"NDP","x":"1993/09/20"},{"y":0.08,"series":"NDP","x":"1993/09/25"},{"y":0.07,"series":"NDP","x":"1993/09/26"},{"y":0.07,"series":"NDP","x":"1993/09/26"},{"y":0.06,"series":"NDP","x":"1993/09/30"},{"y":0.08,"series":"NDP","x":"1993/10/02"},{"y":0.08,"series":"NDP","x":"1993/10/08"},{"y":0.07,"series":"NDP","x":"1993/10/16"},{"y":0.06,"series":"NDP","x":"1993/10/19"},{"y":0.07,"series":"NDP","x":"1993/10/22"},{"y":0.07,"series":"NDP","x":"1993/10/22"},{"y":0.0688,"series":"NDP","x":"1993/10/25"},{"y":0.08,"series":"BQ","x":"1993/09/9"},{"y":0.1,"series":"BQ","x":"1993/09/14"},{"y":0.11,"series":"BQ","x":"1993/09/20"},{"y":0.1,"series":"BQ","x":"1993/09/25"},{"y":0.11,"series":"BQ","x":"1993/09/26"},{"y":0.12,"series":"BQ","x":"1993/09/26"},{"y":0.12,"series":"BQ","x":"1993/09/30"},{"y":0.12,"series":"BQ","x":"1993/10/02"},{"y":0.12,"series":"BQ","x":"1993/10/08"},{"y":0.13,"series":"BQ","x":"1993/10/16"},{"y":0.14,"series":"BQ","x":"1993/10/19"},{"y":0.14,"series":"BQ","x":"1993/10/22"},{"y":0.12,"series":"BQ","x":"1993/10/22"},{"y":0.1352,"series":"BQ","x":"1993/10/25"},{"y":0.1,"series":"Reform","x":"1993/09/9"},{"y":0.11,"series":"Reform","x":"1993/09/14"},{"y":0.11,"series":"Reform","x":"1993/09/20"},{"y":0.13,"series":"Reform","x":"1993/09/25"},{"y":0.13,"series":"Reform","x":"1993/09/26"},{"y":0.15,"series":"Reform","x":"1993/09/26"},{"y":0.17,"series":"Reform","x":"1993/09/30"},{"y":0.14,"series":"Reform","x":"1993/10/02"},{"y":0.18,"series":"Reform","x":"1993/10/08"},{"y":0.16,"series":"Reform","x":"1993/10/16"},{"y":0.17,"series":"Reform","x":"1993/10/19"},{"y":0.18,"series":"Reform","x":"1993/10/22"},{"y":0.19,"series":"Reform","x":"1993/10/22"},{"y":0.1869,"series":"Reform","x":"1993/10/25"}]}],"width":350}</graph>
Override title and color
To override the title and colors for the Reform Party, add <syntaxhighlight lang="wikitext">
| y5Title=Wikipedia Party | colors=,,,,silver
</syntaxhighlight> to the first example, which results in <graph>{"legends":[{"properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"Party","fill":"color"}],"scales":[{"type":"time","name":"x","domain":{"data":"chart","field":"x"},"range":"width","zero":false},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#9999ff","#d71920","#f4a460","#87cefa","silver"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"interpolate":{"value":"basis"},"strokeWidth":{"value":2.5}}},"type":"line"},{"properties":{"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"size":{"value":50},"fill":{"scale":"color","field":"series"},"stroke":{"scale":"color","field":"series"},"shape":{"value":"circle"},"strokeWidth":{"value":0}}},"type":"symbol"}],"from":{"data":"chart","transform":[{"groupby":["series"],"type":"facet"}]}}],"height":200,"axes":[{"type":"x","title":"","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"align":{"value":"right"},"angle":{"value":-40},"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"support","scale":"y","format":"%","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"number","x":"date"},"type":"json"},"name":"chart","values":[{"y":0.35,"series":"PC","x":"1993/09/9"},{"y":0.36,"series":"PC","x":"1993/09/14"},{"y":0.35,"series":"PC","x":"1993/09/20"},{"y":0.3,"series":"PC","x":"1993/09/25"},{"y":0.31,"series":"PC","x":"1993/09/26"},{"y":0.28,"series":"PC","x":"1993/09/26"},{"y":0.25,"series":"PC","x":"1993/09/30"},{"y":0.26,"series":"PC","x":"1993/10/02"},{"y":0.22,"series":"PC","x":"1993/10/08"},{"y":0.22,"series":"PC","x":"1993/10/16"},{"y":0.21,"series":"PC","x":"1993/10/19"},{"y":0.18,"series":"PC","x":"1993/10/22"},{"y":0.16,"series":"PC","x":"1993/10/22"},{"y":0.1604,"series":"PC","x":"1993/10/25"},{"y":0.37,"series":"Liberal","x":"1993/09/9"},{"y":0.33,"series":"Liberal","x":"1993/09/14"},{"y":0.35,"series":"Liberal","x":"1993/09/20"},{"y":0.37,"series":"Liberal","x":"1993/09/25"},{"y":0.36,"series":"Liberal","x":"1993/09/26"},{"y":0.34,"series":"Liberal","x":"1993/09/26"},{"y":0.39,"series":"Liberal","x":"1993/09/30"},{"y":0.38,"series":"Liberal","x":"1993/10/02"},{"y":0.37,"series":"Liberal","x":"1993/10/08"},{"y":0.4,"series":"Liberal","x":"1993/10/16"},{"y":0.39,"series":"Liberal","x":"1993/10/19"},{"y":0.43,"series":"Liberal","x":"1993/10/22"},{"y":0.44,"series":"Liberal","x":"1993/10/22"},{"y":0.4124,"series":"Liberal","x":"1993/10/25"},{"y":0.08,"series":"NDP","x":"1993/09/9"},{"y":0.08,"series":"NDP","x":"1993/09/14"},{"y":0.06,"series":"NDP","x":"1993/09/20"},{"y":0.08,"series":"NDP","x":"1993/09/25"},{"y":0.07,"series":"NDP","x":"1993/09/26"},{"y":0.07,"series":"NDP","x":"1993/09/26"},{"y":0.06,"series":"NDP","x":"1993/09/30"},{"y":0.08,"series":"NDP","x":"1993/10/02"},{"y":0.08,"series":"NDP","x":"1993/10/08"},{"y":0.07,"series":"NDP","x":"1993/10/16"},{"y":0.06,"series":"NDP","x":"1993/10/19"},{"y":0.07,"series":"NDP","x":"1993/10/22"},{"y":0.07,"series":"NDP","x":"1993/10/22"},{"y":0.0688,"series":"NDP","x":"1993/10/25"},{"y":0.08,"series":"BQ","x":"1993/09/9"},{"y":0.1,"series":"BQ","x":"1993/09/14"},{"y":0.11,"series":"BQ","x":"1993/09/20"},{"y":0.1,"series":"BQ","x":"1993/09/25"},{"y":0.11,"series":"BQ","x":"1993/09/26"},{"y":0.12,"series":"BQ","x":"1993/09/26"},{"y":0.12,"series":"BQ","x":"1993/09/30"},{"y":0.12,"series":"BQ","x":"1993/10/02"},{"y":0.12,"series":"BQ","x":"1993/10/08"},{"y":0.13,"series":"BQ","x":"1993/10/16"},{"y":0.14,"series":"BQ","x":"1993/10/19"},{"y":0.14,"series":"BQ","x":"1993/10/22"},{"y":0.12,"series":"BQ","x":"1993/10/22"},{"y":0.1352,"series":"BQ","x":"1993/10/25"},{"y":0.1,"series":"Wikipedia Party","x":"1993/09/9"},{"y":0.11,"series":"Wikipedia Party","x":"1993/09/14"},{"y":0.11,"series":"Wikipedia Party","x":"1993/09/20"},{"y":0.13,"series":"Wikipedia Party","x":"1993/09/25"},{"y":0.13,"series":"Wikipedia Party","x":"1993/09/26"},{"y":0.15,"series":"Wikipedia Party","x":"1993/09/26"},{"y":0.17,"series":"Wikipedia Party","x":"1993/09/30"},{"y":0.14,"series":"Wikipedia Party","x":"1993/10/02"},{"y":0.18,"series":"Wikipedia Party","x":"1993/10/08"},{"y":0.16,"series":"Wikipedia Party","x":"1993/10/16"},{"y":0.17,"series":"Wikipedia Party","x":"1993/10/19"},{"y":0.18,"series":"Wikipedia Party","x":"1993/10/22"},{"y":0.19,"series":"Wikipedia Party","x":"1993/10/22"},{"y":0.1869,"series":"Wikipedia Party","x":"1993/10/25"}]}],"width":350}</graph>
Election results of 16 parties in 12 states
<syntaxhighlight lang="wikitext"><graph>{"legends":[{"properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"Party","fill":"color"}],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"stats","field":"sum_y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#92107d","#582c83","#841818","#ea5b0b","#dcdcdc","#242b57","#f60000","#00a7eb","#006b2d","#00ae41","#012758","#007c5e","#df111a","#5bc422","#0d1e70","#94c11f"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"layout_start"},"x":{"scale":"x","field":"x"},"y2":{"scale":"y","field":"layout_end"},"width":{"scale":"x","offset":-1,"band":true},"fill":{"scale":"color","field":"series"}}},"type":"rect"}],"from":{"data":"chart","transform":[{"field":"y","type":"stack","sortby":["-_id"],"groupby":["x"]},{"groupby":["series"],"type":"facet"}]}}],"height":250,"axes":[{"type":"x","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"align":{"value":"left"},"angle":{"value":90},"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","scale":"y","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"number","x":"string"},"type":"json"},"name":"chart","values":[{"y":0,"series":"50+","x":"Zeeland"},{"y":1,"series":"50+","x":"Flevoland"},{"y":0,"series":"50+","x":"Groningen"},{"y":0,"series":"50+","x":"Friesland"},{"y":0,"series":"50+","x":"Drenthe"},{"y":0,"series":"50+","x":"Overijssel"},{"y":1,"series":"50+","x":"Limburg"},{"y":1,"series":"50+","x":"Utrecht"},{"y":1,"series":"50+","x":"Gelderland"},{"y":2,"series":"50+","x":"North Holland"},{"y":1,"series":"50+","x":"South Holland"},{"y":1,"series":"50+","x":"North Brabant"},{"y":0,"series":"Volt","x":"Zeeland"},{"y":0,"series":"Volt","x":"Flevoland"},{"y":1,"series":"Volt","x":"Groningen"},{"y":0,"series":"Volt","x":"Friesland"},{"y":1,"series":"Volt","x":"Drenthe"},{"y":1,"series":"Volt","x":"Overijssel"},{"y":0,"series":"Volt","x":"Limburg"},{"y":2,"series":"Volt","x":"Utrecht"},{"y":2,"series":"Volt","x":"Gelderland"},{"y":2,"series":"Volt","x":"North Holland"},{"y":1,"series":"Volt","x":"South Holland"},{"y":1,"series":"Volt","x":"North Brabant"},{"y":1,"series":"FvD","x":"Zeeland"},{"y":2,"series":"FvD","x":"Flevoland"},{"y":1,"series":"FvD","x":"Groningen"},{"y":1,"series":"FvD","x":"Friesland"},{"y":1,"series":"FvD","x":"Drenthe"},{"y":1,"series":"FvD","x":"Overijssel"},{"y":1,"series":"FvD","x":"Limburg"},{"y":1,"series":"FvD","x":"Utrecht"},{"y":1,"series":"FvD","x":"Gelderland"},{"y":2,"series":"FvD","x":"North Holland"},{"y":2,"series":"FvD","x":"South Holland"},{"y":1,"series":"FvD","x":"North Brabant"},{"y":5,"series":"SGP","x":"Zeeland"},{"y":2,"series":"SGP","x":"Flevoland"},{"y":0,"series":"SGP","x":"Groningen"},{"y":0,"series":"SGP","x":"Friesland"},{"y":0,"series":"SGP","x":"Drenthe"},{"y":2,"series":"SGP","x":"Overijssel"},{"y":0,"series":"SGP","x":"Limburg"},{"y":2,"series":"SGP","x":"Utrecht"},{"y":3,"series":"SGP","x":"Gelderland"},{"y":0,"series":"SGP","x":"North Holland"},{"y":2,"series":"SGP","x":"South Holland"},{"y":0.5,"series":"SGP","x":"North Brabant"},{"y":2,"series":"Provincial parties","x":"Zeeland"},{"y":1,"series":"Provincial parties","x":"Flevoland"},{"y":4,"series":"Provincial parties","x":"Groningen"},{"y":5,"series":"Provincial parties","x":"Friesland"},{"y":1,"series":"Provincial parties","x":"Drenthe"},{"y":0,"series":"Provincial parties","x":"Overijssel"},{"y":2,"series":"Provincial parties","x":"Limburg"},{"y":0,"series":"Provincial parties","x":"Utrecht"},{"y":1,"series":"Provincial parties","x":"Gelderland"},{"y":0,"series":"Provincial parties","x":"North Holland"},{"y":0,"series":"Provincial parties","x":"South Holland"},{"y":2,"series":"Provincial parties","x":"North Brabant"},{"y":1,"series":"JA21","x":"Zeeland"},{"y":2,"series":"JA21","x":"Flevoland"},{"y":0,"series":"JA21","x":"Groningen"},{"y":1,"series":"JA21","x":"Friesland"},{"y":1,"series":"JA21","x":"Drenthe"},{"y":1,"series":"JA21","x":"Overijssel"},{"y":2,"series":"JA21","x":"Limburg"},{"y":2,"series":"JA21","x":"Utrecht"},{"y":2,"series":"JA21","x":"Gelderland"},{"y":3,"series":"JA21","x":"North Holland"},{"y":3,"series":"JA21","x":"South Holland"},{"y":2,"series":"JA21","x":"North Brabant"},{"y":1,"series":"SP","x":"Zeeland"},{"y":2,"series":"SP","x":"Flevoland"},{"y":2,"series":"SP","x":"Groningen"},{"y":1,"series":"SP","x":"Friesland"},{"y":2,"series":"SP","x":"Drenthe"},{"y":1,"series":"SP","x":"Overijssel"},{"y":3,"series":"SP","x":"Limburg"},{"y":1,"series":"SP","x":"Utrecht"},{"y":1,"series":"SP","x":"Gelderland"},{"y":2,"series":"SP","x":"North Holland"},{"y":2,"series":"SP","x":"South Holland"},{"y":4,"series":"SP","x":"North Brabant"},{"y":1,"series":"CU","x":"Zeeland"},{"y":2,"series":"CU","x":"Flevoland"},{"y":3,"series":"CU","x":"Groningen"},{"y":2,"series":"CU","x":"Friesland"},{"y":2,"series":"CU","x":"Drenthe"},{"y":3,"series":"CU","x":"Overijssel"},{"y":0,"series":"CU","x":"Limburg"},{"y":3,"series":"CU","x":"Utrecht"},{"y":3,"series":"CU","x":"Gelderland"},{"y":1,"series":"CU","x":"North Holland"},{"y":2,"series":"CU","x":"South Holland"},{"y":0.5,"series":"CU","x":"North Brabant"},{"y":1,"series":"PvdD","x":"Zeeland"},{"y":2,"series":"PvdD","x":"Flevoland"},{"y":2,"series":"PvdD","x":"Groningen"},{"y":1,"series":"PvdD","x":"Friesland"},{"y":2,"series":"PvdD","x":"Drenthe"},{"y":2,"series":"PvdD","x":"Overijssel"},{"y":2,"series":"PvdD","x":"Limburg"},{"y":3,"series":"PvdD","x":"Utrecht"},{"y":2,"series":"PvdD","x":"Gelderland"},{"y":4,"series":"PvdD","x":"North Holland"},{"y":3,"series":"PvdD","x":"South Holland"},{"y":2,"series":"PvdD","x":"North Brabant"},{"y":1,"series":"D66","x":"Zeeland"},{"y":2,"series":"D66","x":"Flevoland"},{"y":2,"series":"D66","x":"Groningen"},{"y":1,"series":"D66","x":"Friesland"},{"y":1,"series":"D66","x":"Drenthe"},{"y":2,"series":"D66","x":"Overijssel"},{"y":3,"series":"D66","x":"Limburg"},{"y":5,"series":"D66","x":"Utrecht"},{"y":3,"series":"D66","x":"Gelderland"},{"y":4,"series":"D66","x":"North Holland"},{"y":4,"series":"D66","x":"South Holland"},{"y":4,"series":"D66","x":"North Brabant"},{"y":2,"series":"PVV","x":"Zeeland"},{"y":3,"series":"PVV","x":"Flevoland"},{"y":2,"series":"PVV","x":"Groningen"},{"y":2,"series":"PVV","x":"Friesland"},{"y":2,"series":"PVV","x":"Drenthe"},{"y":2,"series":"PVV","x":"Overijssel"},{"y":6,"series":"PVV","x":"Limburg"},{"y":2,"series":"PVV","x":"Utrecht"},{"y":2,"series":"PVV","x":"Gelderland"},{"y":3,"series":"PVV","x":"North Holland"},{"y":4,"series":"PVV","x":"South Holland"},{"y":4,"series":"PVV","x":"North Brabant"},{"y":5,"series":"CDA","x":"Zeeland"},{"y":2,"series":"CDA","x":"Flevoland"},{"y":2,"series":"CDA","x":"Groningen"},{"y":4,"series":"CDA","x":"Friesland"},{"y":3,"series":"CDA","x":"Drenthe"},{"y":4,"series":"CDA","x":"Overijssel"},{"y":5,"series":"CDA","x":"Limburg"},{"y":4,"series":"CDA","x":"Utrecht"},{"y":4,"series":"CDA","x":"Gelderland"},{"y":2,"series":"CDA","x":"North Holland"},{"y":4,"series":"CDA","x":"South Holland"},{"y":4,"series":"CDA","x":"North Brabant"},{"y":3,"series":"PvdA","x":"Zeeland"},{"y":3,"series":"PvdA","x":"Flevoland"},{"y":5,"series":"PvdA","x":"Groningen"},{"y":5,"series":"PvdA","x":"Friesland"},{"y":4,"series":"PvdA","x":"Drenthe"},{"y":3,"series":"PvdA","x":"Overijssel"},{"y":3,"series":"PvdA","x":"Limburg"},{"y":3,"series":"PvdA","x":"Utrecht"},{"y":5,"series":"PvdA","x":"Gelderland"},{"y":7,"series":"PvdA","x":"North Holland"},{"y":4,"series":"PvdA","x":"South Holland"},{"y":4,"series":"PvdA","x":"North Brabant"},{"y":3,"series":"GL","x":"Zeeland"},{"y":3,"series":"GL","x":"Flevoland"},{"y":5,"series":"GL","x":"Groningen"},{"y":3,"series":"GL","x":"Friesland"},{"y":2,"series":"GL","x":"Drenthe"},{"y":4,"series":"GL","x":"Overijssel"},{"y":4,"series":"GL","x":"Limburg"},{"y":7,"series":"GL","x":"Utrecht"},{"y":4,"series":"GL","x":"Gelderland"},{"y":6,"series":"GL","x":"North Holland"},{"y":6,"series":"GL","x":"South Holland"},{"y":5,"series":"GL","x":"North Brabant"},{"y":4,"series":"VVD","x":"Zeeland"},{"y":4,"series":"VVD","x":"Flevoland"},{"y":2,"series":"VVD","x":"Groningen"},{"y":3,"series":"VVD","x":"Friesland"},{"y":4,"series":"VVD","x":"Drenthe"},{"y":4,"series":"VVD","x":"Overijssel"},{"y":5,"series":"VVD","x":"Limburg"},{"y":6,"series":"VVD","x":"Utrecht"},{"y":6,"series":"VVD","x":"Gelderland"},{"y":8,"series":"VVD","x":"North Holland"},{"y":8,"series":"VVD","x":"South Holland"},{"y":9,"series":"VVD","x":"North Brabant"},{"y":9,"series":"BBB","x":"Zeeland"},{"y":10,"series":"BBB","x":"Flevoland"},{"y":12,"series":"BBB","x":"Groningen"},{"y":14,"series":"BBB","x":"Friesland"},{"y":17,"series":"BBB","x":"Drenthe"},{"y":17,"series":"BBB","x":"Overijssel"},{"y":10,"series":"BBB","x":"Limburg"},{"y":7,"series":"BBB","x":"Utrecht"},{"y":15,"series":"BBB","x":"Gelderland"},{"y":9,"series":"BBB","x":"North Holland"},{"y":9,"series":"BBB","x":"South Holland"},{"y":11,"series":"BBB","x":"North Brabant"}]},{"transform":[{"type":"aggregate","summarize":{"y":"sum"},"groupby":["x"]}],"name":"stats","source":"chart"}],"width":200}</graph></syntaxhighlight> <graph>{"legends":[{"properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"Party","fill":"color"}],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"stats","field":"sum_y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#92107d","#582c83","#841818","#ea5b0b","#dcdcdc","#242b57","#f60000","#00a7eb","#006b2d","#00ae41","#012758","#007c5e","#df111a","#5bc422","#0d1e70","#94c11f"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"layout_start"},"x":{"scale":"x","field":"x"},"y2":{"scale":"y","field":"layout_end"},"width":{"scale":"x","offset":-1,"band":true},"fill":{"scale":"color","field":"series"}}},"type":"rect"}],"from":{"data":"chart","transform":[{"field":"y","type":"stack","sortby":["-_id"],"groupby":["x"]},{"groupby":["series"],"type":"facet"}]}}],"height":250,"axes":[{"type":"x","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"align":{"value":"left"},"angle":{"value":90},"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","scale":"y","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"number","x":"string"},"type":"json"},"name":"chart","values":[{"y":0,"series":"50+","x":"Zeeland"},{"y":1,"series":"50+","x":"Flevoland"},{"y":0,"series":"50+","x":"Groningen"},{"y":0,"series":"50+","x":"Friesland"},{"y":0,"series":"50+","x":"Drenthe"},{"y":0,"series":"50+","x":"Overijssel"},{"y":1,"series":"50+","x":"Limburg"},{"y":1,"series":"50+","x":"Utrecht"},{"y":1,"series":"50+","x":"Gelderland"},{"y":2,"series":"50+","x":"North Holland"},{"y":1,"series":"50+","x":"South Holland"},{"y":1,"series":"50+","x":"North Brabant"},{"y":0,"series":"Volt","x":"Zeeland"},{"y":0,"series":"Volt","x":"Flevoland"},{"y":1,"series":"Volt","x":"Groningen"},{"y":0,"series":"Volt","x":"Friesland"},{"y":1,"series":"Volt","x":"Drenthe"},{"y":1,"series":"Volt","x":"Overijssel"},{"y":0,"series":"Volt","x":"Limburg"},{"y":2,"series":"Volt","x":"Utrecht"},{"y":2,"series":"Volt","x":"Gelderland"},{"y":2,"series":"Volt","x":"North Holland"},{"y":1,"series":"Volt","x":"South Holland"},{"y":1,"series":"Volt","x":"North Brabant"},{"y":1,"series":"FvD","x":"Zeeland"},{"y":2,"series":"FvD","x":"Flevoland"},{"y":1,"series":"FvD","x":"Groningen"},{"y":1,"series":"FvD","x":"Friesland"},{"y":1,"series":"FvD","x":"Drenthe"},{"y":1,"series":"FvD","x":"Overijssel"},{"y":1,"series":"FvD","x":"Limburg"},{"y":1,"series":"FvD","x":"Utrecht"},{"y":1,"series":"FvD","x":"Gelderland"},{"y":2,"series":"FvD","x":"North Holland"},{"y":2,"series":"FvD","x":"South Holland"},{"y":1,"series":"FvD","x":"North Brabant"},{"y":5,"series":"SGP","x":"Zeeland"},{"y":2,"series":"SGP","x":"Flevoland"},{"y":0,"series":"SGP","x":"Groningen"},{"y":0,"series":"SGP","x":"Friesland"},{"y":0,"series":"SGP","x":"Drenthe"},{"y":2,"series":"SGP","x":"Overijssel"},{"y":0,"series":"SGP","x":"Limburg"},{"y":2,"series":"SGP","x":"Utrecht"},{"y":3,"series":"SGP","x":"Gelderland"},{"y":0,"series":"SGP","x":"North Holland"},{"y":2,"series":"SGP","x":"South Holland"},{"y":0.5,"series":"SGP","x":"North Brabant"},{"y":2,"series":"Provincial parties","x":"Zeeland"},{"y":1,"series":"Provincial parties","x":"Flevoland"},{"y":4,"series":"Provincial parties","x":"Groningen"},{"y":5,"series":"Provincial parties","x":"Friesland"},{"y":1,"series":"Provincial parties","x":"Drenthe"},{"y":0,"series":"Provincial parties","x":"Overijssel"},{"y":2,"series":"Provincial parties","x":"Limburg"},{"y":0,"series":"Provincial parties","x":"Utrecht"},{"y":1,"series":"Provincial parties","x":"Gelderland"},{"y":0,"series":"Provincial parties","x":"North Holland"},{"y":0,"series":"Provincial parties","x":"South Holland"},{"y":2,"series":"Provincial parties","x":"North Brabant"},{"y":1,"series":"JA21","x":"Zeeland"},{"y":2,"series":"JA21","x":"Flevoland"},{"y":0,"series":"JA21","x":"Groningen"},{"y":1,"series":"JA21","x":"Friesland"},{"y":1,"series":"JA21","x":"Drenthe"},{"y":1,"series":"JA21","x":"Overijssel"},{"y":2,"series":"JA21","x":"Limburg"},{"y":2,"series":"JA21","x":"Utrecht"},{"y":2,"series":"JA21","x":"Gelderland"},{"y":3,"series":"JA21","x":"North Holland"},{"y":3,"series":"JA21","x":"South Holland"},{"y":2,"series":"JA21","x":"North Brabant"},{"y":1,"series":"SP","x":"Zeeland"},{"y":2,"series":"SP","x":"Flevoland"},{"y":2,"series":"SP","x":"Groningen"},{"y":1,"series":"SP","x":"Friesland"},{"y":2,"series":"SP","x":"Drenthe"},{"y":1,"series":"SP","x":"Overijssel"},{"y":3,"series":"SP","x":"Limburg"},{"y":1,"series":"SP","x":"Utrecht"},{"y":1,"series":"SP","x":"Gelderland"},{"y":2,"series":"SP","x":"North Holland"},{"y":2,"series":"SP","x":"South Holland"},{"y":4,"series":"SP","x":"North Brabant"},{"y":1,"series":"CU","x":"Zeeland"},{"y":2,"series":"CU","x":"Flevoland"},{"y":3,"series":"CU","x":"Groningen"},{"y":2,"series":"CU","x":"Friesland"},{"y":2,"series":"CU","x":"Drenthe"},{"y":3,"series":"CU","x":"Overijssel"},{"y":0,"series":"CU","x":"Limburg"},{"y":3,"series":"CU","x":"Utrecht"},{"y":3,"series":"CU","x":"Gelderland"},{"y":1,"series":"CU","x":"North Holland"},{"y":2,"series":"CU","x":"South Holland"},{"y":0.5,"series":"CU","x":"North Brabant"},{"y":1,"series":"PvdD","x":"Zeeland"},{"y":2,"series":"PvdD","x":"Flevoland"},{"y":2,"series":"PvdD","x":"Groningen"},{"y":1,"series":"PvdD","x":"Friesland"},{"y":2,"series":"PvdD","x":"Drenthe"},{"y":2,"series":"PvdD","x":"Overijssel"},{"y":2,"series":"PvdD","x":"Limburg"},{"y":3,"series":"PvdD","x":"Utrecht"},{"y":2,"series":"PvdD","x":"Gelderland"},{"y":4,"series":"PvdD","x":"North Holland"},{"y":3,"series":"PvdD","x":"South Holland"},{"y":2,"series":"PvdD","x":"North Brabant"},{"y":1,"series":"D66","x":"Zeeland"},{"y":2,"series":"D66","x":"Flevoland"},{"y":2,"series":"D66","x":"Groningen"},{"y":1,"series":"D66","x":"Friesland"},{"y":1,"series":"D66","x":"Drenthe"},{"y":2,"series":"D66","x":"Overijssel"},{"y":3,"series":"D66","x":"Limburg"},{"y":5,"series":"D66","x":"Utrecht"},{"y":3,"series":"D66","x":"Gelderland"},{"y":4,"series":"D66","x":"North Holland"},{"y":4,"series":"D66","x":"South Holland"},{"y":4,"series":"D66","x":"North Brabant"},{"y":2,"series":"PVV","x":"Zeeland"},{"y":3,"series":"PVV","x":"Flevoland"},{"y":2,"series":"PVV","x":"Groningen"},{"y":2,"series":"PVV","x":"Friesland"},{"y":2,"series":"PVV","x":"Drenthe"},{"y":2,"series":"PVV","x":"Overijssel"},{"y":6,"series":"PVV","x":"Limburg"},{"y":2,"series":"PVV","x":"Utrecht"},{"y":2,"series":"PVV","x":"Gelderland"},{"y":3,"series":"PVV","x":"North Holland"},{"y":4,"series":"PVV","x":"South Holland"},{"y":4,"series":"PVV","x":"North Brabant"},{"y":5,"series":"CDA","x":"Zeeland"},{"y":2,"series":"CDA","x":"Flevoland"},{"y":2,"series":"CDA","x":"Groningen"},{"y":4,"series":"CDA","x":"Friesland"},{"y":3,"series":"CDA","x":"Drenthe"},{"y":4,"series":"CDA","x":"Overijssel"},{"y":5,"series":"CDA","x":"Limburg"},{"y":4,"series":"CDA","x":"Utrecht"},{"y":4,"series":"CDA","x":"Gelderland"},{"y":2,"series":"CDA","x":"North Holland"},{"y":4,"series":"CDA","x":"South Holland"},{"y":4,"series":"CDA","x":"North Brabant"},{"y":3,"series":"PvdA","x":"Zeeland"},{"y":3,"series":"PvdA","x":"Flevoland"},{"y":5,"series":"PvdA","x":"Groningen"},{"y":5,"series":"PvdA","x":"Friesland"},{"y":4,"series":"PvdA","x":"Drenthe"},{"y":3,"series":"PvdA","x":"Overijssel"},{"y":3,"series":"PvdA","x":"Limburg"},{"y":3,"series":"PvdA","x":"Utrecht"},{"y":5,"series":"PvdA","x":"Gelderland"},{"y":7,"series":"PvdA","x":"North Holland"},{"y":4,"series":"PvdA","x":"South Holland"},{"y":4,"series":"PvdA","x":"North Brabant"},{"y":3,"series":"GL","x":"Zeeland"},{"y":3,"series":"GL","x":"Flevoland"},{"y":5,"series":"GL","x":"Groningen"},{"y":3,"series":"GL","x":"Friesland"},{"y":2,"series":"GL","x":"Drenthe"},{"y":4,"series":"GL","x":"Overijssel"},{"y":4,"series":"GL","x":"Limburg"},{"y":7,"series":"GL","x":"Utrecht"},{"y":4,"series":"GL","x":"Gelderland"},{"y":6,"series":"GL","x":"North Holland"},{"y":6,"series":"GL","x":"South Holland"},{"y":5,"series":"GL","x":"North Brabant"},{"y":4,"series":"VVD","x":"Zeeland"},{"y":4,"series":"VVD","x":"Flevoland"},{"y":2,"series":"VVD","x":"Groningen"},{"y":3,"series":"VVD","x":"Friesland"},{"y":4,"series":"VVD","x":"Drenthe"},{"y":4,"series":"VVD","x":"Overijssel"},{"y":5,"series":"VVD","x":"Limburg"},{"y":6,"series":"VVD","x":"Utrecht"},{"y":6,"series":"VVD","x":"Gelderland"},{"y":8,"series":"VVD","x":"North Holland"},{"y":8,"series":"VVD","x":"South Holland"},{"y":9,"series":"VVD","x":"North Brabant"},{"y":9,"series":"BBB","x":"Zeeland"},{"y":10,"series":"BBB","x":"Flevoland"},{"y":12,"series":"BBB","x":"Groningen"},{"y":14,"series":"BBB","x":"Friesland"},{"y":17,"series":"BBB","x":"Drenthe"},{"y":17,"series":"BBB","x":"Overijssel"},{"y":10,"series":"BBB","x":"Limburg"},{"y":7,"series":"BBB","x":"Utrecht"},{"y":15,"series":"BBB","x":"Gelderland"},{"y":9,"series":"BBB","x":"North Holland"},{"y":9,"series":"BBB","x":"South Holland"},{"y":11,"series":"BBB","x":"North Brabant"}]},{"transform":[{"type":"aggregate","summarize":{"y":"sum"},"groupby":["x"]}],"name":"stats","source":"chart"}],"width":200}</graph>
Majority of seats
<syntaxhighlight lang="wikitext"><graph>{"legends":[{"properties":{"legend":{"y":{"value":-50}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"House seats 2022","fill":"color"}],"scales":[{"domain":{"data":"chart","field":"x"},"type":"ordinal","name":"color","range":["#e81b23","#3333ff"]}],"version":2,"marks":[{"type":"arc","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"x"}},"enter":{"endAngle":{"field":"layout_end"},"innerRadius":{"value":25},"outerRadius":{"value":50},"startAngle":{"field":"layout_start"},"stroke":{"value":"white"},"fill":{"scale":"color","field":"x"},"strokeWidth":{"value":1}}},"from":{"data":"chart","transform":[{"type":"pie","field":"y"}]}},{"type":"text","properties":{"enter":{"theta":{"field":"layout_mid"},"baseline":{"value":"bottom"},"align":{"value":"center"},"text":{"field":"y"},"y":{"group":"height","mult":0.5},"x":{"group":"width","mult":0.5},"fontSize":{"value":10},"angle":{"mult":57.29577951308232,"field":"layout_mid"},"radius":{"offset":5,"value":50},"fill":{"value":"#54595d"}}},"from":{"data":"chart","transform":[{"field":"y","type":"pie"}]}}],"height":200,"axes":[],"data":[{"format":{"parse":{"y":"integer","x":"string"},"type":"json"},"name":"chart","values":[{"y":222,"x":"Republican"},{"y":213,"x":"Democratic"}]}],"width":50}</graph> </syntaxhighlight> <graph>{"legends":[{"properties":{"legend":{"y":{"value":-50}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"House seats 2022","fill":"color"}],"scales":[{"domain":{"data":"chart","field":"x"},"type":"ordinal","name":"color","range":["#e81b23","#3333ff"]}],"version":2,"marks":[{"type":"arc","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"x"}},"enter":{"endAngle":{"field":"layout_end"},"innerRadius":{"value":25},"outerRadius":{"value":50},"startAngle":{"field":"layout_start"},"stroke":{"value":"white"},"fill":{"scale":"color","field":"x"},"strokeWidth":{"value":1}}},"from":{"data":"chart","transform":[{"type":"pie","field":"y"}]}},{"type":"text","properties":{"enter":{"theta":{"field":"layout_mid"},"baseline":{"value":"bottom"},"align":{"value":"center"},"text":{"field":"y"},"y":{"group":"height","mult":0.5},"x":{"group":"width","mult":0.5},"fontSize":{"value":10},"angle":{"mult":57.29577951308232,"field":"layout_mid"},"radius":{"offset":5,"value":50},"fill":{"value":"#54595d"}}},"from":{"data":"chart","transform":[{"field":"y","type":"pie"}]}}],"height":200,"axes":[],"data":[{"format":{"parse":{"y":"integer","x":"string"},"type":"json"},"name":"chart","values":[{"y":222,"x":"Republican"},{"y":213,"x":"Democratic"}]}],"width":50}</graph>
See also
- {{Graph:Chart}}
- {{Party color}}
- {{Party shortname}}