open-innovations / oi-lume-viz

Lume Plugin that enables charting
https://open-innovations.github.io/oi-lume-viz/
5 stars 1 forks source link

Add ridgeline plots #44

Closed slowe closed 11 months ago

slowe commented 1 year ago

Like the Joy Division/pulsar plot https://www.data-to-viz.com/graph/ridgeline.html

slowe commented 1 year ago

Examples where we have made these include measuring light in our space and our COVID-19 cases by local authority stacked plot.

slowe commented 11 months ago

I've started having a look at this. This is where I'm up to. Screenshot 2023-09-20 at 09-15-52 Ridgeline chart OI Lume Viz It is initially derived from the line chart code but with changes to alter the y-axis scaling and positioning. I'm proposing that we add the following ridgeline specific options to the config:

ridgeline:
  height: 2
  curvature: 0.5

where height is scaled by the maximum value to the spacing of ridgelines (1 = no overlap) and curvature is in the range 0 (join with straight lines) to 1 (curvy). For each series we have the additional options of:

slowe commented 11 months ago

A few examples of what can be done: Screenshot 2023-09-20 at 12-00-06 Ridgeline chart OI Lume Viz Screenshot 2023-09-20 at 11-59-58 Ridgeline chart OI Lume Viz Screenshot 2023-09-20 at 09-15-52 Ridgeline chart OI Lume Viz Screenshot 2023-09-20 at 12-00-28 Ridgeline chart OI Lume Viz Screenshot 2023-09-20 at 12-00-17 Ridgeline chart OI Lume Viz