Skip to content

Commit

Permalink
fix(timeline): remove toISOString to make date axis more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
pandegaabyan committed Jul 19, 2024
1 parent 4ade924 commit f105837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optuna_dashboard/ts/components/GraphTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const plotTimeline = (
xaxis: {
title: "Datetime",
type: "date",
range: [minDatetime.toISOString(), maxDatetime.toISOString()],
range: [minDatetime, maxDatetime],
},
yaxis: {
title: "Trial",
Expand Down Expand Up @@ -188,7 +188,7 @@ const plotTimeline = (
x: runDurations,
y: bars.map((b) => b.number),
// @ts-ignore: To suppress ts(2322)
base: starts.map((s) => s.toISOString()),
base: starts,
name: state,
text: bars.map((b) => makeHovertext(b)),
hovertemplate: "%{text}<extra>" + state + "</extra>",
Expand Down

0 comments on commit f105837

Please sign in to comment.