Haris N I
Haris N I

Reputation: 6844

jqplot line chart repeating x-axis value

I am using JQ -Plot line chart for creating a dashbord. But i have a problem repeating the date values in x-axis. how can i remove repeated date values?

enter image description here

Here i want to show only first july 10 and jul 11

Upvotes: 0

Views: 950

Answers (1)

AnthonyLeGovic
AnthonyLeGovic

Reputation: 2335

You have several things you can do in order to remove repeated date values :

  • specify your own ticks using axes: {xaxis: {ticks: ['Jul 10', 'Jul 11'] }},
  • specify the number of ticks you want using axes: {xaxis: {numberTicks: 2}} (you can in addition specify the min value and/or the max value),
  • specify the gap between two ticks using `axes: {xaxis: {tickInterval: '1 day', min: 'July 10, 2014}}

Don't hesitate to create a jsfiddle with your code in order to exchange words about it.

Upvotes: 1

Related Questions