Template:Pie chart of New Zealand vineyard area by region/doc

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.). Currently, using percent directly in the chart template causes errors, so they have been substituted for now.

Usage
To include this chart in an article, simply place the following where you need it:

Citation
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. The ref is supplied as the first parameter, for example:

The default citation will look something like this: