frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.9k stars 716 forks source link

Can frappe do non-contiguous data? #360

Open tobinbradley opened 2 years ago

tobinbradley commented 2 years ago

I have data from years that are not contiguous, like ["2010", "2011", "2014"], and I'm trying to make a line chart to show the trend. I can fill in the missing years for the labels, but can frappe deal with data gaps, like [ 5, 12, null, null, 17]? When I try this the nulls get interpreted as 0.

Apologies if there's an easy solution to this that I've missed but I've been all over the docs and I can't find one. I'm looking for something like the Chart.js spanGaps option.

danekolsen commented 2 years ago

I'm also looking for a feature like this in the library. Datasets where there might occasionally be a null value but 0 isn't appropriate in the UI.

jon49 commented 7 months ago

There's a pull request for this in #243 but it looks like one of those PRs that will take 5+ years to merge in.