Skip to content

Commit

Permalink
Merge pull request #805 from unitaryfund/795_add_chart_padding
Browse files Browse the repository at this point in the history
#795: Add chart padding
  • Loading branch information
WrathfulSpatula authored Feb 23, 2023
2 parents cf6aa61 + 3f52a5b commit b1f54d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SotaChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ class SotaChart extends React.Component {
maintainAspectRatio: false,
layout: {
padding: {
right: this.state.windowWidth >= 820 ? 100 : undefined
left: this.state.windowWidth >= 820 ? 40 : 8,
right: this.state.windowWidth >= 820 ? 100 : 16
}
},
scales: {
Expand Down

0 comments on commit b1f54d6

Please sign in to comment.