我使用最新版本的chart.js来获取此代码:
// Set chart default options
Chart.defaults.global.legend.display = false;
Chart.defaults.global.tooltips.enabled = false;
Chart.defaults.global.animation.duration = 0;
// Create the chart
new Chart($canvas, {
type: 'pie',
responsive: true,
data: {
labels: [],
datasets: [{
data: [_value, 100-_value],
backgroundColor: [
$pieColor,
'transparent'
],
hoverBorderColor: [
'transparent',
'transparent'
]
}]
}
});
我怎样才能让它在文档中停止缩放鼠标?