CodeForAfrica / HURUmap

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
https://hurumap.org
GNU General Public License v3.0
8 stars 7 forks source link

Add missing show y axis to Chart options #66

Closed KhadijaMahanga closed 5 years ago

KhadijaMahanga commented 5 years ago

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.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

Screenshots

Checklist: