c3
c3 copied to clipboard
Fixing zero baseline x axis to be same for both Y axis in dual Y-axis area chart
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.
can you post your jsfiddle code here?
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});