Skip to content

Commit

Permalink
Merge pull request #407 from euanwm/fix/chartjs_config
Browse files Browse the repository at this point in the history
chartjs config tweaked
  • Loading branch information
euanwm authored Oct 3, 2024
2 parents bb120f4 + 1cbd23b commit 22ce939
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 117 deletions.
9 changes: 3 additions & 6 deletions frontend/components/molecules/lifterGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import {
Title,
Tooltip,
Legend,
ChartOptions,
} from 'chart.js'
} from 'chart.js'
import { Line } from 'react-chartjs-2'

ChartJS.register(
Expand Down Expand Up @@ -64,7 +63,7 @@ const LifterGraph = ({
const config = {
plugins: {
legend: {
display: false,
display: true,
},
},
scales: {
Expand All @@ -81,8 +80,7 @@ const LifterGraph = ({
},
y: {
grid: {
color: '#F0F0F0',
borderColor: '#F0F0F0',
display: false,
borderWidth: 1,
},
ticks: {
Expand All @@ -93,7 +91,6 @@ const LifterGraph = ({
},
},
},
maintainAspectRatio: false,
aspectRatio: setRatio,
}

Expand Down
215 changes: 105 additions & 110 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "API=http://localhost:8080 next dev",
"dev": "API=http://localhost:8080 next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand Down

0 comments on commit 22ce939

Please sign in to comment.