madLokesh
madLokesh

Reputation: 1878

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

Upvotes: 3

Views: 5003

Answers (1)

Mark
Mark

Reputation: 108512

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.

Upvotes: 7

Related Questions