Graph (old): Migrate right y axis to TimeSeries via custom.axisPlacement (#83452)

This commit is contained in:
Leon Sorokin
2024-02-26 18:22:36 -06:00
committed by GitHub
parent d4a932ae33
commit 4db30754a6
2 changed files with 9 additions and 0 deletions
@@ -656,6 +656,10 @@ exports[`Graph Migrations twoYAxis 1`] = `
"id": "max",
"value": 25,
},
{
"id": "custom.axisPlacement",
"value": "right",
},
{
"id": "custom.axisLabel",
"value": "Y222",
@@ -658,6 +658,11 @@ function fillY2DynamicValues(
}
}
props.push({
id: `custom.axisPlacement`,
value: AxisPlacement.Right,
});
// Add any custom property
const y1G = y1.custom ?? {};
const y2G = y2.custom ?? {};