From f10583753423cb0219f33113c1cf3475da927d78 Mon Sep 17 00:00:00 2001 From: pandega Date: Fri, 19 Jul 2024 18:57:44 +0700 Subject: [PATCH] fix(timeline): remove toISOString to make date axis more consistent --- optuna_dashboard/ts/components/GraphTimeline.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optuna_dashboard/ts/components/GraphTimeline.tsx b/optuna_dashboard/ts/components/GraphTimeline.tsx index 766d4951..fbaff870 100644 --- a/optuna_dashboard/ts/components/GraphTimeline.tsx +++ b/optuna_dashboard/ts/components/GraphTimeline.tsx @@ -157,7 +157,7 @@ const plotTimeline = ( xaxis: { title: "Datetime", type: "date", - range: [minDatetime.toISOString(), maxDatetime.toISOString()], + range: [minDatetime, maxDatetime], }, yaxis: { title: "Trial", @@ -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}" + state + "",