Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix live chart time range;add custom anomaly tooltip #122

Merged
merged 1 commit into from
May 9, 2020

Conversation

ylwu-amzn
Copy link
Contributor

@ylwu-amzn ylwu-amzn commented May 9, 2020

Issue #, if available:

Description of changes:

  • Fix wrong bar width cause by X Axis time range

Before

X Axis shows 1 hour, which is wrong, we should show 6 hours.
Screen Shot 2020-05-09 at 1 06 29 AM

After

Screen Shot 2020-05-09 at 4 01 45 AM

  • Add custom tooltip for live anomaly

Before

Screen Shot 2020-05-09 at 3 59 46 AM

After

Screen Shot 2020-05-09 at 3 56 18 AM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -107,11 +107,43 @@ const sampleMaxAnomalyGrade = (anomalies: any[]): any[] => {
return sampledAnomalies;
};

export const prepareDataForLiveChart = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add comment saying why we need this.

@ylwu-amzn ylwu-amzn merged commit 0bf3cba into opendistro-for-elasticsearch:1.4 May 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants