Align graph parallel coordinate

This commit is contained in:
keisuke-umezawa
2022-11-06 13:11:31 +09:00
parent cc2c13fece
commit 3d971a89b8
@@ -89,9 +89,9 @@ const plotCoordinate = (
const layout: Partial<plotly.Layout> = {
margin: {
l: 70,
t: 100,
t: 50,
r: 50,
b: 0,
b: 100,
},
template: mode === "dark" ? plotlyDarkTemplate : {},
}
@@ -168,9 +168,19 @@ const plotCoordinate = (
const plotData: Partial<plotly.PlotData>[] = [
{
type: "parcoords",
// @ts-ignore
dimensions: dimensions,
labelangle: 30,
labelside: "bottom",
line: {
color: dimensions[0]["values"],
// @ts-ignore
colorscale: "Blues",
colorbar: {
title: "Objective value",
},
showscale: true,
reversescale: study.directions[objectiveId] === "maximize",
},
},
]