chart.js如何用箭头代替条形图

chart.js如何用箭头代替条形图,chart.js,draw,Chart.js,Draw,绘制箭头而不是条形图的最简单方法是什么 我尝试过这种方法,在每个点上添加一个图像,但箭头没有响应,我无法设置每个箭头图像的大小 // Variables 'sun' and 'cloud' are created before with `new Image()` Chart.pluginService.register({ afterUpdate: function(chart) { chart.config.data.datasets[0]._meta[0].dat

绘制箭头而不是条形图的最简单方法是什么

我尝试过这种方法,在每个点上添加一个图像,但箭头没有响应,我无法设置每个箭头图像的大小

// Variables 'sun' and 'cloud' are created before with `new Image()`

Chart.pluginService.register({
    afterUpdate: function(chart) {
        chart.config.data.datasets[0]._meta[0].data[7]._model.pointStyle = sun;
        chart.config.data.datasets[1]._meta[0].data[2]._model.pointStyle = cloud;
    }
});

我会给你的

我在这里做到了