1var mixedChart = new Chart(ctx, {
2 type: 'bar',
3 data: {
4 datasets: [{
5 label: 'Bar Dataset',
6 data: [10, 20, 30, 40],
7 // this dataset is drawn below
8 order: 2
9 }, {
10 label: 'Line Dataset',
11 data: [10, 10, 10, 10],
12 type: 'line',
13 // this dataset is drawn on top
14 order: 1
15 }],
16 labels: ['January', 'February', 'March', 'April']
17 },
18 options: options
19});
1var mixedChart = new Chart(ctx, {
2 type: 'bar',
3 data: {
4 datasets: [{
5 label: 'Bar Dataset',
6 data: [10, 20, 30, 40],
7 // this dataset is drawn below
8 order: 1
9 }, {
10 label: 'Line Dataset',
11 data: [10, 10, 10, 10],
12 type: 'line',
13 // this dataset is drawn on top
14 order: 2
15 }],
16 labels: ['January', 'February', 'March', 'April']
17 },
18 options: options
19});