0
votes

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

1 Answers

0
votes

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