diff --git a/ui/src/shared/components/Annotation.js b/ui/src/shared/components/Annotation.js index 0059437f7c..7e63b15a9c 100644 --- a/ui/src/shared/components/Annotation.js +++ b/ui/src/shared/components/Annotation.js @@ -1,10 +1,12 @@ import React, {PropTypes} from 'react' const calcStyle = (annotation, dygraph) => { + const left = `${dygraph.toDomXCoord(annotation.time)}px` + return { + left, position: 'absolute', top: '0px', - left: `${dygraph.toDomXCoord(annotation.time)}px`, backgroundColor: '#f00', height: '100%', width: '2px',