7👍
With
var chart = new Chart(ctx).Line(data);
the following will get you your ‘margins’
alert(chart.scale.xScalePaddingLeft);
alert(chart.scale.xScalePaddingRight);
- [Chartjs]-Filtering labels to show user from Chart.js
- [Chartjs]-Chart.js zoom instantly zooms in fully on first point no matter what type of zoom used
Source:stackexchange.com