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 1 year ago.
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?
Math.max(Math.floor(this.maxWidth / 40), 2)
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
You must be logged in to reply to this topic.
ASP.NET MVC Charts
ContactSales EnquiriesSupport ForumTwitter Support Handle