frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies

Home Page:https://frappe.io/charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can frappe do non-contiguous data?

tobinbradley opened this issue · comments

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.

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.

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.