azavea / fb-gender-survey-dashboard

Interactive exploration of global results from the Facebook "Survey on Gender Equality At Home
https://gender-survey-dashboard.netlify.app/
Apache License 2.0
2 stars 2 forks source link

Distinguish between pct and hours chart type #56

Closed mmcfarland closed 3 years ago

mmcfarland commented 3 years ago

Overview

We are currently rendering both pct and hours chart types as a groupedchart, which is the correct rendering type, but doesn't account for different axis understandings. pct can be rendered as 0-100, while hours is a simple number. This type assignment already exists in the dataproc script.

There may be an additional type unaccounted for, for questions such as "what is your gender" which is neither hours nor pct, but could be treated like hours - perhaps this type should be expanded and renamed number, with corresponding changes to the chart rendering.

Pct types should apply a % label and a fixed axis.

In the following existing example, the top chart would be 0-100 and the bottom chart would be as-is, but perhaps with locale formatting on the numbers

image