Skip to content

Commit

Permalink
Merge pull request #2255 from wondrous-dev/fix/chart-aspect-ratio
Browse files Browse the repository at this point in the history
fix aspect ratio on web
  • Loading branch information
Lamperoyge authored May 1, 2024
2 parents f12c234 + d42264b commit 8f3c2fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function LineBarChart({ title, data = null, renderComponents = null }) {
const options: ChartOptions<"line" | "bar"> = {
responsive: true,
maintainAspectRatio: true,
aspectRatio: isMobile ? 1 : 2,
aspectRatio: isMobile ? 1 : 3,
plugins: {
legend: {
position: "top",
Expand Down

0 comments on commit 8f3c2fd

Please sign in to comment.