最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - Setting C3.JS X axis and text - Stack Overflow

matteradmin4PV0评论

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 from axis-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
Add a ment  | 

1 Answer 1

Reset to default 1

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

An example form the docs:

http://c3js/samples/axes_x_tick_values.html

Post a comment

comment list (0)

  1. No comments so far