mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Update legend position in Graph components
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user