Skip to content

Commit

Permalink
[ML] Fix Single Metric Viewer y domain extending beyond the visible f…
Browse files Browse the repository at this point in the history
…ocus area (#86655)
  • Loading branch information
qn895 authored Dec 21, 2020
1 parent 7930854 commit 8760fa5
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 8760fa5

Please sign in to comment.