Skip to content

Commit

Permalink
dateTimeLabel fix to never state Jan 1
Browse files Browse the repository at this point in the history
Will now just display HH:MM and never the actual date
  • Loading branch information
gr812b committed Apr 10, 2024
1 parent 20640c7 commit 23afbb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions front-end/src/lib/chartOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ const getStandardChartConfig = (chartInformation) => {
text: chartInformation.files[0].columns[0].header
},

dateTimeLabelFormats: {
day: '%H:%M', // Removes stating the date, instead only shows the time
},

type: chartInformation.dtformat !== 'none' ? 'datetime' : 'linear',

lineColor: 'grey',
Expand Down

0 comments on commit 23afbb0

Please sign in to comment.