Skip to content

Commit

Permalink
fix x axis
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jan 5, 2025
1 parent 0df0d7b commit 88641d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function chart(csvFile, element, options) {
label: "Date",
axisLabel: {
formatter: value => {
return new Date('2001-4').toLocaleString('default', { year: "numeric", month: "short"});
return new Date(value).toLocaleString('default', { year: "numeric", month: "short"});
},
align: 'center'
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"echarts-stat": "^1.2.0",
"fuse.js": "^7.0.0",
"jquery": "^3.7.1",
"luxon": "^3.5.0",
"normalize.css": "^8.0.1",
"ol": "^9.0.0",
"popper.js": "^1.16.1"
Expand Down

0 comments on commit 88641d9

Please sign in to comment.