Home Forums Feature Requests & Feedback Ticks number for Y axis

Ticks number for Y axis

Viewing 2 posts - 1 through 2 (of 2 total)
  • #9866

    Hello,

    I faced the next problem – there are too few ticks on the yAxis. For instance it shows me 3 ticks (1000, 2000, 3000) with pretty big gaps between them.

    I have found next code and want to ask if it is correct.

    var noTicks = this.type === "axisX" 
        ? (this.maxWidth < 500 ? 8 : Math.max(6, Math.floor(this.maxWidth / 62))) 
        : Math.max(Math.floor(this.maxWidth / 40), 2);

    Is it right, that second expression Math.max(Math.floor(this.maxWidth / 40), 2) uses maxWidth property?

    • This topic was modified 8 years, 9 months ago by samushenkov.
    #9869

    Samushenkov, we have checked and verified that the expression is correct. In case if you like to show-up more number of ticks, you can use interval

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.