Hi, I'm trying to make a line chart that uses two y-axes, one on the left side of the chart and one on the right.
Originally I got it to work by using the length of values in the datasource, like this:
However, this doesn't work when I interpolate the missing values on the chart, as there can be many more categories on the x-axis than there are elements in the data array. I end up getting an axis hanging out somewhere in the middle of the chart.
Does anyone know a way I can get the number of categories on the x-axis WHILE instantiating the chart?
Or would I have to access the number of categories and change the axisCrossingValue after the chart has been built and call refresh()?
Thanks for any ideas!
Erik
Originally I got it to work by using the length of values in the datasource, like this:
axisCrossingValue: [0, datasource.data().length] }
However, this doesn't work when I interpolate the missing values on the chart, as there can be many more categories on the x-axis than there are elements in the data array. I end up getting an axis hanging out somewhere in the middle of the chart.
Does anyone know a way I can get the number of categories on the x-axis WHILE instantiating the chart?
Or would I have to access the number of categories and change the axisCrossingValue after the chart has been built and call refresh()?
Thanks for any ideas!
Erik