Now that multiple years are available, users should be able to see in
their downloads which year is being displayed in PNGs and CSVs.
Adds the year to each response row in the CSV downloads.
Adds the year to the question / title of the waffle chart, which will only ever
display one year. Adds the year beside each bar in the bar charts (which
will show multiple years in comparison view).
Connects #117
Demo
Notes
For the bar charts, which will be reused for comparative view, I have followed the mockup in the SOW in adding the year.
Testing Instructions
Select a geography and year in the Netlify preview, then select at least three questions: an 'out of 10' question (waffle chart), an 'agree / disagree' question (stacked bar chart), and a question with a bolded answer below it (grouped bar chart).
Download the PNG for each chart.
[x] The waffle chart should have the year displayed near the beginning of the question.
[x] The bar charts should have the year displayed beside each bar.
Download a CSV for each chart.
[x] There should be a 'year' column with the year entered for each row.
Download all the charts using the 'download CSV' button near the top of the page.
[x] There should be a 'year' column with the year entered for each row.
Overview
Now that multiple years are available, users should be able to see in their downloads which year is being displayed in PNGs and CSVs.
Adds the year to each response row in the CSV downloads.
Adds the year to the question / title of the waffle chart, which will only ever display one year. Adds the year beside each bar in the bar charts (which will show multiple years in comparison view).
Connects #117
Demo
Notes
For the bar charts, which will be reused for comparative view, I have followed the mockup in the SOW in adding the year.
Testing Instructions