c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Dynamically Set Y/Y2 Max

Open nathancole opened this issue 12 years ago • 3 comments

Is it currently possible to dynamically set the Max Y value after the chart has already been created? I'm switching out one of the data series in my chart with data that should conform to a different range, but I want it to be a static range so that it always provides a consistent representation irrespective the subject.

nathancole avatar Apr 03 '14 15:04 nathancole

Hi, I added APIs for updating y/y2 range. Here is a sample http://c3js.org/samples/api_axis_range.html and I think these can be used for your purpose. Could you try on the latest version 0.1.27?

masayuki0812 avatar Apr 04 '14 04:04 masayuki0812

Looks good man. Thanks yet again!

nathancole avatar Apr 04 '14 16:04 nathancole

Refer to #1866 if you're looking to change from a set y-max to c3-dynamic (undefined) y-max.

forteddyt avatar Jul 28 '17 23:07 forteddyt