使用Chart的饼图图例造型js
答
你可以做到这样,在您的图表选项usePointStyle
属性图例标签设置为true
,像这样...
options: {
legend: {
labels: {
usePointStyle: true //<-- set this
}
},
...
}