c3js / c3

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

spline is cut off with when axis.y.padding is 0 #690

Open jarib opened 9 years ago

jarib commented 9 years ago

A spline chart with axis.y.padding set to 0 will be cut off:

image

When the y axis shows a percentage, I would like to avoid padding since it introduces y ticks > 100.

A line chart of the same data does not have this problem:

image

It would be nice if the spline chart could be padded just enough to fit the spline but without introducing new ticks on the y axis.

masayuki0812 commented 9 years ago

I think it's better to introduce custom interpolation that we can set max and min not to be cut off. Please let me mark this issue as enhancement. I'll work on in the future.

jarib commented 9 years ago

Sounds good. Thank you.