最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论