【发布时间】:2021-03-26 12:54:30
【问题描述】:
当我将鼠标悬停在图表上方时,它会用灰色边框突出显示我悬停在上面的部分。我该怎么做才能删除它。
【问题讨论】:
当我将鼠标悬停在图表上方时,它会用灰色边框突出显示我悬停在上面的部分。我该怎么做才能删除它。
【问题讨论】:
您可以使用hoverBorderWidth 属性来移除悬停时的边框,如下所示:
var myDoughnutChart = new Chart(ctx, {
type: 'doughnut',
data: {
datasets: [
data: [//data here],
hoverBorderWidth: 0
]
},
options: options
});
【讨论】: