Home forums Feature Requests & Feedback Ticks number for Y axis

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 9 months, 3 weeks ago.

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

    samushenkov
    Member

    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 9 months, 3 weeks ago by  samushenkov.
    #9869

    Vishwas R
    Keymaster

    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.