Skip to content

Commit

Permalink
[ML] Fix anomaly point plotting incorrectly for metric partitioned
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Nov 3, 2020
1 parent 19e20ee commit ea8d71f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function processDataForFocusAnomalies(
if (record.actual !== undefined) {
// If cannot match chart point for anomaly time
// substitute the value with the record's actual so it won't plot as null/0
if (chartPoint.value === null) {
if (chartPoint.value === null || record.function === 'metric') {
chartPoint.value = record.actual;
}

Expand All @@ -186,9 +186,9 @@ export function processDataForFocusAnomalies(
if (record.multi_bucket_impact !== undefined) {
chartPoint.multiBucketImpact = record.multi_bucket_impact;
}
if (record.function === 'metric') {
chartPoint.metricActualPlotFunction = record.function_description ?? functionDescription;
}
// if (record.function === 'metric') {
// chartPoint.metricActualPlotFunction = record.function_description ?? functionDescription;
// }
}
}
});
Expand Down

0 comments on commit ea8d71f

Please sign in to comment.