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

javascript - Flot: Displaying specific tick labels - Stack Overflow

programmeradmin6浏览0评论

I have a flot graph with y-axis co-ordinates to be 55, 110, 220, 440, 880, 1760.

I want all the six ticks to be displayed but I donot want the tick label 55 and 1760 to be displayed.

Is it possible through Flot Charts?

Thanx

I have a flot graph with y-axis co-ordinates to be 55, 110, 220, 440, 880, 1760.

I want all the six ticks to be displayed but I donot want the tick label 55 and 1760 to be displayed.

Is it possible through Flot Charts?

Thanx

Share Improve this question edited Mar 11, 2013 at 10:14 madLokesh asked Mar 11, 2013 at 10:09 madLokeshmadLokesh 1,87823 silver badges49 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

In your options pass a ticks array with an empty label at those positions:

yaxis: {
  ticks: [[55, ""], [110, "label"], [220, "label"], [440, "label"], [880, "label"], [1760, ""]]
}

Fiddle here.

发布评论

评论列表(0)

  1. 暂无评论