Huge gap between last two labels when using maxTicksLimit

My chart has so much data the labels won’t all fit:

sf2hz

I found https://stackoverflow.com/questions/22064577/limit-labels-number-on-chartjs-line-chart which suggests adding:

autoSkip: true,
maxTicksLimit: 10

However, despite how high or low I set this limit, there’s always a large gap towards the right end of the x-axis. Does anybody know why?

https://jsfiddle.net/askhflajsf/xzk6sh1q/

Author: Fantashit

1 thought on “Huge gap between last two labels when using maxTicksLimit

Comments are closed.