Is it possible to set the X-axis ticks and text separate from the column data values with C3.JS charts?
I have data being loaded for a 24hr period but where the time stamps may be for any time in that period. I have been requested to provide X-axis tick labels for only every 90 minute interval.
Is it possible to set the X-axis ticks and text separate from the column data values with C3.JS charts?
I have data being loaded for a 24hr period but where the time stamps may be for any time in that period. I have been requested to provide X-axis tick labels for only every 90 minute interval.
Share Improve this question asked Feb 28, 2017 at 10:42 Matt WMatt W 12.5k29 gold badges140 silver badges240 bronze badges 2-
So you want to set
axis-x-tick-values
separately fromaxis-x-tick-labels
? – Deividas Commented Feb 28, 2017 at 10:56 - More accurately I would say I want to set the ticks and tick labels explicitly, separate from the data. – Matt W Commented Feb 28, 2017 at 10:58
1 Answer
Reset to default 1You can set axis-x-tick-values
separately from data labels.
An example form the docs:
http://c3js/samples/axes_x_tick_values.html