Matt W
Matt W

Reputation: 12423

Setting C3.JS X axis and text

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.

Upvotes: 3

Views: 13083

Answers (1)

Deividas
Deividas

Reputation: 6507

You can set axis-x-tick-values separately from data labels.

An example form the docs:

http://c3js.org/samples/axes_x_tick_values.html

Upvotes: 1

Related Questions