Skip to content

Commit

Permalink
Merge pull request optuna#906 from pandegaabyan/fix/timeline-date-axis
Browse files Browse the repository at this point in the history
Minor fix date axis in Timeline Chart for consistency with other charts
  • Loading branch information
c-bata authored Jul 23, 2024
2 parents 1845ba3 + f105837 commit 0198825
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 0198825

Please sign in to comment.