How can I make a graph in jqplot make all of its ticks at even integer intervals? For example, I have
yaxis: {numberTicks:16, min: 0}
I'd like to have it so that the chart stretches from 0-15, and if plot points go beyond 15, the chart changes to 0-30. Is this doable?
Use the tickInterval instead of numberTicks, like so:
axes:
{
yaxis:
{
tickInterval: 15
}
}
I think this is closest to what you want, but note that having a point close to y=15 will cause the chart to stretch to 30 as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With