Skip to content

Commit

Permalink
[7.11] [ML] Fix Single Metric Viewer y domain extending beyond the vi…
Browse files Browse the repository at this point in the history
…sible focus area (#86655) (#86691)
  • Loading branch information
qn895 authored Dec 21, 2020
1 parent 0baaf30 commit 496c27f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ class TimeseriesChartIntl extends Component {
const levels = getAnnotationLevels(focusAnnotationData);
const maxLevel = d3.max(Object.keys(levels).map((key) => levels[key]));
// TODO needs revisiting to be a more robust normalization
yMax = yMax * (1 + (maxLevel + 1) / 5);
yMax += Math.abs(yMax - yMin) * ((maxLevel + 1) / 5);
}
this.focusYScale.domain([yMin, yMax]);
} else {
Expand Down

0 comments on commit 496c27f

Please sign in to comment.