Skip to content

Commit

Permalink
docs: fixed axes options in stacked bar chart example (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
burtyish authored Oct 18, 2021
1 parent 62808e6 commit 74c169a
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions example/src/charts/StackedBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,16 @@ const data = {

const options = {
scales: {
yAxes: [
{
stacked: true,
ticks: {
beginAtZero: true,
},
},
],
xAxes: [
{
stacked: true,
},
],
},
y: {
stacked: true,
ticks: {
beginAtZero: true
}
},
x: {
stacked: true
}
}
};

const StackedBar = () => (
Expand Down

0 comments on commit 74c169a

Please sign in to comment.