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

[Feature] Multiple Chart Qualifiers Support #36

Closed kilemensi closed 5 years ago

kilemensi commented 5 years ago

Description

Currently HURUmap (and wazimap) only supports a single qualifier. This PR adds ability to have more than one qualifier. Due to html limitation of single data-qualifier attribute, the value of this attribute would need to be delimiter-ed to support multiple values. \n is used as delimiter.


... data-qualifier="GF: Global Fund\nADF: African Development Fund" data-...

By adding multiple qualifiers support, one can use qualifiers to add legend to those charts, like histogram, that do not have a legend by default. This means shorter names can be used on the charts themselves leading to clean and easy to read charts.

Type of change

Please delete options that are not relevant.

Screenshots

Before

screenshot from 2018-09-25 13-33-13

After

screenshot from 2018-09-25 13-32-43

Checklist: