【发布时间】:2021-05-20 14:53:13
【问题描述】:
This is my current doughnut chart and I want to show the values of each arc on the arc itself.
这是图表的配置。
const genderConfig={
plugins: {
title: {
display: true,
text: "GENDER",
font: {
size: 20,
},
},
legend: {
labels: {
boxHeight: 20,
boxWidth: 25,
},
position: "bottom",
},
},
}
附:我知道有一个非常相似的问题,我已经尝试过该线程中提到的解决方案,但我认为当前版本的 Chart.js 不再存在该解决方案。
【问题讨论】:
标签: javascript reactjs chart.js react-chartjs-2