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

Commit

Permalink
remove usage of getAnnotationId()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianli Feng committed May 27, 2020
1 parent 9b25745 commit 9d6b2a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
niceTimeFormatter,
Settings,
Position,
getAnnotationId,
LineAnnotation,
} from '@elastic/charts';
import { ChartContainer } from '../../../../../components/ChartContainer/ChartContainer';
Expand Down Expand Up @@ -69,7 +68,7 @@ const AnomaliesChart = props => {
/>
{props.annotationData ? (
<LineAnnotation
annotationId={getAnnotationId('anomalyAnnotation')}
annotationId="anomalyAnnotation"
domainType="yDomain"
dataValues={props.annotationData}
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
getSpecId,
getAxisId,
RectAnnotation,
getAnnotationId,
niceTimeFormatter,
} from '@elastic/charts';
import { EuiPagination, EuiText, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui';
Expand Down Expand Up @@ -70,7 +69,7 @@ class FeatureChart extends React.Component {
<Chart>
<RectAnnotation
dataValues={annotations || []}
annotationId={getAnnotationId('react')}
annotationId="react"
style={{
stroke: '#FCAAAA',
strokeWidth: 1.5,
Expand Down

0 comments on commit 9d6b2a8

Please sign in to comment.