We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513138b commit 6aca701Copy full SHA for 6aca701
x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js
@@ -689,7 +689,7 @@ class TimeseriesChartIntl extends Component {
689
const levels = getAnnotationLevels(focusAnnotationData);
690
const maxLevel = d3.max(Object.keys(levels).map((key) => levels[key]));
691
// TODO needs revisiting to be a more robust normalization
692
- yMax = yMax * (1 + (maxLevel + 1) / 5);
+ yMax += Math.abs(yMax - yMin) * ((maxLevel + 1) / 5);
693
}
694
this.focusYScale.domain([yMin, yMax]);
695
} else {
0 commit comments