I am trying to create a graph that can look good on both the mobile and the desktop using c3 ( http://c3js.org/ ).
However, I am having trouble getting the x axis, which is a timer, to display the size of the change for mobile devices. The only way I was able to do this was to destroy the chart and recreate it from scratch. But this prevents me from adding a good transition to the chart, which would be very nice to have. [! [desktop view] [1]] [1]
I tried using the tick culling option on the x axis and set the maximum value to 8, but this parameter is ignored when using flush () or resize () .
So my question is: is there a way to change the values โโof the x axis without having to destroy the graph and re-generate it? http://imgur.com/EMECqqB
source share