0

如何在 chart.js 版本 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);
            }
    });
4

1 回答 1

0

Chart.js 提供了非常好的文档,请先轻松查看它,因为您的答案很有可能会在其中:https ://www.chartjs.org/docs/master/developers/charts.html#extending-existing-chart -类型

于 2021-04-24T10:25:25.790 回答