Skip to content

Commit 74c169a

Browse files
authored
docs: fixed axes options in stacked bar chart example (#680)
1 parent 62808e6 commit 74c169a

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

example/src/charts/StackedBar.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,16 @@ const data = {
2424

2525
const options = {
2626
scales: {
27-
yAxes: [
28-
{
29-
stacked: true,
30-
ticks: {
31-
beginAtZero: true,
32-
},
33-
},
34-
],
35-
xAxes: [
36-
{
37-
stacked: true,
38-
},
39-
],
40-
},
27+
y: {
28+
stacked: true,
29+
ticks: {
30+
beginAtZero: true
31+
}
32+
},
33+
x: {
34+
stacked: true
35+
}
36+
}
4137
};
4238

4339
const StackedBar = () => (

0 commit comments

Comments
 (0)