'Chartjs increase grid distance

Image - 1

dates are displayed on the x-axis, values are displayed on the y-axis.

How can I change the interval distance?



Solution 1:[1]

You should look at the documentation of chartjs and specifically linear axis: chartjs documentation

Code Example:

JsFiddle Example

xAxes: [{
type: 'time',
ticks: {
    autoSkip: true,
    maxTicksLimit: 20
}
}]

Solution 2:[2]

Your question is not elaborate enough. Atleast you should have given sample json for the chartjs via which you are plotting. From my understanding this should work :

xAxis: {
          ticks: {
                maxTicksLimit: 10
            }
        }

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bogatom
Solution 2 Sourav Suman