📜  角度图表 js 甜甜圈颜色 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:58.193000             🧑  作者: Mango

代码示例1
// HTML
div class="chart-wrapper">
  
  
// TS export class AppComponent { doughnutChartLabels: Label[] = ['BMW', 'Ford', 'Tesla']; doughnutChartData: MultiDataSet = [ [ 55, 25, 20 ] ]; doughnutChartType: ChartType = 'doughnut'; colors: Color[] = [ { backgroundColor: [ 'red', 'green', 'blue' ] } ]; }