[Chartjs]-Chart.js maxBarThickness is deprecated in angular 8

6👍

This property is no longer part of the xAxis but it can be set directly on the dataset as explained in dataset configuration.

Please also see example usage.

data: {
    datasets: [{
        barPercentage: 0.5,
        barThickness: 6,
        maxBarThickness: 8,
        minBarLength: 2,
        data: [10, 20, 30, 40, 50, 60, 70]
    }]
};

Leave a comment