bcgov / platform-services-registry

Platform services OCP project registry
https://registry.developer.gov.bc.ca/
Apache License 2.0
8 stars 13 forks source link

Histogram vs Barchart #3234

Open Amritpal-Nijjar opened 1 week ago

Amritpal-Nijjar commented 1 week ago

In the analytics dashboard we have many charts to display certain statistics. The problem is that the tremor library only provides basic charts that are commonly used. We are using the incorrect type of chart for the Request decision time frequency (%). This chart should instead be a histogram chart which is not supported by the tremor library. Although histogram and bar charts look very similar they are not the same and cannot be used interchangeably, as they each serve a specific purpose to relay information to users. See the provided screenshot and link to learn more about histogram vs bar chart. https://www.guru99.com/histogram-vs-bar-chart.html

Screenshot 2024-06-26 at 1.06.04 PM.png Screenshot 2024-06-26 at 1.06.37 PM.png

There is another chart we can refactor to instead use a bar chart, and that is the Ministry per Cluster chart. A doughnut style chart is not great overall, as humans are not great at seeing proportions or percentages in a circular fashion. It is okay for quick summarizations when there are about 5 or less elements. This chart would benefit much more from a bar chart as the screenshot above checks all the boxes for this data.

Screenshot 2024-06-26 at 1.07.03 PM.png