Skip to content

Commit 62808e6

Browse files
authored
docs: add stack properties to grouped bar chart example (#722)
1 parent 9c83941 commit 62808e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/src/charts/GroupedBar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ const data = {
88
label: '# of Red Votes',
99
data: [12, 19, 3, 5, 2, 3],
1010
backgroundColor: 'rgb(255, 99, 132)',
11+
stack: 'Stack 0',
1112
},
1213
{
1314
label: '# of Blue Votes',
1415
data: [2, 3, 20, 5, 1, 4],
1516
backgroundColor: 'rgb(54, 162, 235)',
17+
stack: 'Stack 0',
1618
},
1719
{
1820
label: '# of Green Votes',
1921
data: [3, 10, 13, 15, 22, 30],
2022
backgroundColor: 'rgb(75, 192, 192)',
23+
stack: 'Stack 1',
2124
},
2225
],
2326
};

0 commit comments

Comments
 (0)