sacundim / covid-19-puerto-rico

COVID-19 data and graphs for Puerto Rico
13 stars 6 forks source link

Creating a polar histogram for covid deaths / cases / hospitalizations #46

Open Denovocto opened 1 year ago

Denovocto commented 1 year ago

Looked for a contributing.md but couldn't find it so I'm going to do my best to cover the basis of the idea in relationship to the project.

I find that it would be nice to have a radial histogram time series visualization of different datasets with variable date frames. This visualization would be useful for comparing the amount of deaths / cases / hospitalizations across different years at a simple glance. something similar to:

These types of diagrams are also called Nightingale Rose Diagrams, Polar Area Diagrams, radial charts. I do not know / don't have enough experience in Altair to know if such visualization is possible to plot with it, But I think they might be doable with seaborn / matplotlib shenanigans. Closest thing I could find in the Altair docs is: https://altair-viz.github.io/gallery/radial_chart.html I am aware that these diagrams of the drawbacks these diagrams can pose. Such that if many data series are superimposed on top each other, It can prove hard to read, and that the overall shape that the diagram makes may skew actual area. But I think something can still be made out of the data gathered and may prove useful to some. I'm down to help develop this if there is interest (from the owner of the repo) in making it happen. May be a shot in the dark, and IDK if Issues like this are welcome here, but I'll shoot my shot.