Flot: Displaying specific tick labels

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

Answers:

Answer

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.

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.