How to use below syntax in chart.js 3.x?

940 Views Asked by At

How to use below syntax in chart.js version 3?

 Chart.defaults.LineWithLine = Chart.defaults.line;
           Chart.controllers.LineWithLine = Chart.controllers.line.extend({
           draw: function(ease) {
              Chart.controllers.line.prototype.draw.call(this, ease);
            }
    });
1

There are 1 best solutions below

2
On

Chart.js provides verry good documentation, ease take a look at it first because big chance your answer will be in there: https://www.chartjs.org/docs/master/developers/charts.html#extending-existing-chart-types