0
我想把標籤放在pie.who請告訴我。謝謝!這裏的代碼。誰知道如何放下在離子2餡餅的標題
this.pieChart = new Chart(this.pieCanvas.nativeElement, {
type: 'pie',
data: {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: [
"#ff0000",
"#0000ff",
"#ffff00",
"#008000",
"#800080",
"#ffa500"
]
}]
}
});
太感謝你了。有用 –