mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-23 13:30:25 +08:00
Only show legend with multiple studies in history plot
This commit is contained in:
@@ -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 : {},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user