我找到了Chart.js pie chart
的下一个饼图var dataPTD = [
{
label: "Single Family Residence",
color: "#5093ce",
highlight: "#78acd9",
value: 52
},
{
label: "Townhouse/Condo",
color: "#c7ccd1",
highlight: "#e3e6e8",
value: 12
}
如何在图表中心和静态显示一个工具提示,例如:
仅显示“单身家庭住宅”对应的“52”