I am using dateaxis render for my x-axis. How can I find the min and max value from the x-axis valuse?
Find min and max value for dateaxis in jqplot
761 views Asked by chinnusaccount At
1
I am using dateaxis render for my x-axis. How can I find the min and max value from the x-axis valuse?
If you want the minimum/maximum x-axis value from your dataset you can use:
If you want the minimum/maximum from the x-axis (i.e. tick label) you can use:
where plot1 is a reference to the jqplot object. These return the minimum/maximum dates in milliseconds.
Please see this Fiddle for an example. The 2 buttons can be used to display the min or max values.