Flot: Displaying specific tick labels

十年热恋 提交于 2020-01-02 08:04:48

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/15335856/flot-displaying-specific-tick-labels

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!