diff --git a/optuna_dashboard/ts/components/GraphHistory.tsx b/optuna_dashboard/ts/components/GraphHistory.tsx index 0b77e563..280c02fc 100644 --- a/optuna_dashboard/ts/components/GraphHistory.tsx +++ b/optuna_dashboard/ts/components/GraphHistory.tsx @@ -206,7 +206,7 @@ const plotHistory = ( title: xAxis === "number" ? "Trial" : "Time", type: xAxis === "number" ? "linear" : "date", }, - showlegend: true, + showlegend: historyPlotInfos.length === 1 ? false : true, template: mode === "dark" ? plotlyDarkTemplate : {}, }