Update legend position in Graph components

This commit is contained in:
hrntsm
2024-04-22 19:35:31 +09:00
parent d1ca77873a
commit e57a2fa36f
5 changed files with 20 additions and 0 deletions
@@ -118,6 +118,10 @@ const plotEdf = (
b: 50,
},
template: colorTheme,
legend: {
x: 1.0,
y: 0.95,
},
}
const plotData: Partial<plotly.PlotData>[] = edfPlotInfos.map((h) => {
@@ -259,6 +259,10 @@ const plotHistory = (
},
showlegend: historyPlotInfos.length === 1 ? false : true,
template: colorTheme,
legend: {
x: 1.0,
y: 0.95,
},
}
const getAxisX = (trial: Trial): number | Date => {
@@ -130,6 +130,10 @@ const plotParamImportance = (
bargroupgap: 0.1,
uirevision: "true",
template: colorTheme,
legend: {
x: 1.0,
y: 0.95,
},
}
if (document.getElementById(plotDomId) === null) {
@@ -61,6 +61,10 @@ const plotIntermediateValue = (
},
uirevision: "true",
template: colorTheme,
legend: {
x: 1.0,
y: 0.95,
},
}
if (trials.length === 0) {
plotly.react(plotDomId, [], layout)
@@ -165,6 +165,10 @@ const plotTimeline = (
},
uirevision: "true",
template: colorTheme,
legend: {
x: 1.0,
y: 0.95,
},
}
const makeTrace = (bars: Trial[], state: string, color: string) => {