任何人都可以告诉我如何删除折线图背后的阴影,如下图所示?
你可以用两种方式做到:
var options = {
elements: {
line: {
tension: 0
}
}
};
lineTension
设置为0。var chartData = {
labels: labels,
datasets: [{
label: "Chart Data",
lineTension: 0,
data: someData,
}]
};