Only show legend with multiple studies in history plot

This commit is contained in:
keisuke-umezawa
2023-08-19 16:06:20 +09:00
parent d6df55bfec
commit 7b322c8bb8
@@ -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 : {},
}