chart js line chart multiple labels

Solutions on MaxInterview for chart js line chart multiple labels by the best coders in the world

showing results for - "chart js line chart multiple labels"
Irene
03 May 2020
1const myChart = new Chart(ctx, {
2    type: 'doughnut',
3    data: {
4        datasets: [{
5            data: [1, 2, 3, 4, 5],
6            backgroundColor: [
7                'green',
8                'yellow',
9                'red',
10                'purple',
11                'blue',
12            ],
13            labels: [
14                'green',
15                'yellow',
16                'red',
17                'purple',
18                'blue',
19            ]
20        }, {
21            data: [6, 7, 8],
22            backgroundColor: [
23                'black',
24                'grey',
25                'lightgrey'
26            ],
27            labels: [
28                'black',
29                'grey',
30                'lightgrey'
31            ],
32        },]
33    }
34  //....