n3-charts / line-chart

Awesome charts for AngularJS.
http://n3-charts.github.io/line-chart/
MIT License
1.2k stars 180 forks source link

Feature request: truncated x axis #538

Open pedrokost opened 7 years ago

pedrokost commented 7 years ago

I have a chart which has sporadic data, and the data is usually found in well defined clusters.

image

I would like to be able to define ranges for the x-axis which would collapse.

I think the only option at the moment would be to generate N charts and position them one next to the other.

chaosmail commented 7 years ago

Hi @pedrokost sorry for the late reply.

Would it help you if the chart would only be interpolated inside the chunks of data points but not between them? have you tried to insert a NULL value after these chunks?

Just for myself: Here would be a sample of how to split up interpolation in chunks using plain D3 http://bl.ocks.org/tomgp/77772ee20f8d509ad5b4

Best, Christoph