Issue #2 resolved

tickInterval axis option not working correctly

Chris Leonello
repo owner created an issue

Specifying tickInterval in the axis options results in the correct tick interval, but the number of ticks is not calculated correctly.

Comments (9)

  1. Anonymous

    ver 0.8.0 in jquery.jqplot.js line 2252: now: if (dim > 100) { should be: elseif (dim > 100) {

    in iqplot.dateAxisRenderer.js line 247: now: this.max = Date.create(this.min).add(this.numberTicks-1, this._tickInterval[1]).getTime(); should be: this.max = Date.create(this.min).add(this.numberTicks-1 * this._tickInterval[0], this._tickInterval[1]).getTime();

  2. Anonymous

    sorry: in iqplot.dateAxisRenderer.js line 247:

    now: this.max = Date.create(this.min).add(this.numberTicks-1, this._tickInterval[1]).getTime();

    should be: this.max = Date.create(this.min).add((this.numberTicks-1) * this._tickInterval[0], this._tickInterval[1]).getTime();

  3. Chris Leonello reporter

    Tested and looks good! Remember, you can specify intervals like "1 week" or "2 months" and DateAxisRenderer will figure it out.

    Your fix will be in the next commit. Thanks again!

  4. Anonymous

    I want to display by day, but I do not want the weekend (Saturday and Sunday),only show Monday to Firday, can do it?

    my email : pirate.yk@gmail.com

    Thanks!

  5. Log in to comment