c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Fixing zero baseline x axis to be same for both Y axis in dual Y-axis area chart

Open asadchachar opened this issue 9 years ago • 2 comments

Hi,

I am using c3JS dual Y-axis area chart. It is working fine in normal scenarios. I want to fix the zero line x-axis of both Y axes to have same zero x-axis. While y axis grow dynamically, as per data.

Please find screenshot.

chart

asadchachar avatar Apr 26 '17 03:04 asadchachar

can you post your jsfiddle code here?

venkatasandeepd avatar May 02 '17 12:05 venkatasandeepd

Issue is resolved by using axis.max and axis.min property dynamically var maxi = <max of axis>' 'var mini = <min of axis>' 'chart.axis.max({y: maxi, y2: maxi});' 'chart.axis.min({y: mini, y2: mini});

chart

asadchachar avatar May 05 '17 20:05 asadchachar