'How to round and stack bars using chart js?

scales: {
    x: {
        type : 'time',
        time : {
            round : 'minute',
            unit : 'minute'
        },
    },
    y: {
        stacked: true,
        beginAtZero: true,
    }
}

I want to round off the x values to the closet minute and want the coinciding bars to be stacked. I tried this code but fails to stack the bars



Sources

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

Source: Stack Overflow

Solution Source