c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Data: unevenly spaced timeseries? #591

Closed sgoumaz closed 9 years ago

sgoumaz commented 9 years ago

We need to display multiple unevenly-spaced timeseries on a chart. Currently, it looks like we would have to first process all series to produce the tabular form C3 expects (i.e. rows & columns), with one row for each distinct time (x) and missing values set as null. Am I correct? Is there a better way?

Data from different sources with irregular sampling rates seems a pretty common case to me, so I was surprised not to find it anywhere (I've searched examples, issues and mailing list). Thanks in advance.

sgoumaz commented 9 years ago

All right, I just realized I wasn't probably looking for the right keywords... the example of "Multiple XY Line Chart" does show how to use custom "x" values per series.