[Chartjs]-Delay animation of chart.js

2👍

You first need to install: chartjs-plugin-deferred here
And then add to your item

plugins: {
    deferred: {           // enabled by default
        xOffset: 150,     // defer until 150px of the canvas width are inside the viewport
        yOffset: '50%',   // defer until 50% of the canvas height are inside the viewport
        delay: 500        // delay of 500 ms after the canvas is considered inside the viewport
    }
}

Leave a comment