mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Only adjust the bounds of SMV if annotations are visible (#79210)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
5ca87308ea
commit
e067604d78
1 changed files with 1 additions and 1 deletions
|
@ -672,7 +672,7 @@ class TimeseriesChartIntl extends Component {
|
|||
|
||||
// if annotations are present, we extend yMax to avoid overlap
|
||||
// between annotation labels, chart lines and anomalies.
|
||||
if (focusAnnotationData && focusAnnotationData.length > 0) {
|
||||
if (showAnnotations && focusAnnotationData && focusAnnotationData.length > 0) {
|
||||
const levels = getAnnotationLevels(focusAnnotationData);
|
||||
const maxLevel = d3.max(Object.keys(levels).map((key) => levels[key]));
|
||||
// TODO needs revisiting to be a more robust normalization
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue