是否可以在Chart.js中向现有图表添加水平线?
这里是示例char代码:
// the canvas // the js var ctx = document.getElementById("myChart").getContext("2d"); var myNewChart = new Chart(ctx).Bar(data);
我想添加一个水平标记线(例如,y = 100,就像这个小提琴一样,用于高图)