Skip to content

Commit

Permalink
Fixes to responsive styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mityaua committed Feb 21, 2024
1 parent e42208a commit 446c05c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ canvas {
}

.chart-container {
width: 80vw;

margin: 0 auto;
position: relative;
margin: auto;
height: 80vh;
width: 95vw;
}
3 changes: 1 addition & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ function drawChart(years, data1, data2, data3) {
],
},
options: {
responsive: true,
responsiveAnimationDuration: 500,
maintainAspectRatio: false,
scales: {
y: {
ticks: {
Expand Down

0 comments on commit 446c05c

Please sign in to comment.