Template:Pie chart of New Zealand vineyard area by region
This template uses {{Pie chart}} to produce a right-thumb-styled chart of New Zealand's vineyard area by region, using the latest annual report available from New Zealand Winegrowers, the national industry organisation. Currently, they do not publish their statistics with an open license, so we can't use Wikidata-based tab-delimited files (yet... we're working on it!)
The colour values used in the chart are from {{BrewerColors}}, using Set3.
The percentage values used in the chart are obtained using the area figures from the report and calculated using (e.g.) value1={{percent|27808|39935|1|%=}}
. Currently, using {{percent}} directly in the chart template causes errors, so they have been substituted for now.
Usage
[edit]To include this chart in an article, simply place the following where you need it:
{{Pie chart of New Zealand vineyard area by region}}
Citation
[edit]You can optionally supply a named ref tag if the article already has a citation for the New Zealand Winegrowers annual report, otherwise one will be generated with the reference name "nzw-annual-report"
. The ref is supplied as the first parameter, for example:
{{Pie chart of New Zealand vineyard area by region | <ref name="refname"/>}}
The default citation will look something like this:
"New Zealand Winegrowers Annual Report". New Zealand Winegrowers. 2020. Retrieved 22 April 2021.