HURUmap is an interactive web platform that allows citizens and journalists to explore, visualise, and download census data. This gives them the power to give context to stories that was otherwise hard to spot. Accessible at https://hurumap.org
The option show y axis for charts is not included in the option object sent to Chart function. It is true for charts with percentage stat type only from the line (i.e chart.chartChartShowYAxis = options.chartChartShowYAxis || (chart.chartStatType == "percentage" ? true : false); in js/chart.js. We want to be able to show y axis on other stat type too.
This PR adds chartShowYAxis to the options object
Fixes # (issue)
Type of change
[x] New feature (non-breaking change which adds functionality)
Screenshots
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
Description
The option
show y axis
for charts is not included in the option object sent to Chart function. It is true for charts with percentage stat type only from the line (i.echart.chartChartShowYAxis = options.chartChartShowYAxis || (chart.chartStatType == "percentage" ? true : false);
injs/chart.js
. We want to be able to show y axis on other stat type too.This PR adds
chartShowYAxis
to the options objectFixes # (issue)
Type of change
Screenshots
Checklist: