1๐
You could format the first tick to be empty string, using ticks.callback
{
type: 'time',
ticks: {
callback: (value, index) => index === 0 ? '' : value
}
}
- Chartjs-React Native Chart not showing data
- Chartjs-Chart.js don't work when I open my app as a stand alone app in Chrome
0๐
I was eventually able to get the desired behavior using the afterFit
callback.
{
type: 'time',
afterFit: (scaleInstance) => {
scaleInstance.paddingLeft = 0;
scaleInstance.paddingRight = 0;
}
}
Source:stackexchange.com