Safestr the annotation style property

This commit is contained in:
Michael Lange 2020-08-04 23:01:56 -07:00
parent ebdb0c4101
commit 033618c46e

View file

@ -306,7 +306,7 @@ export default class LineChart extends Component.extend(WindowResizable) {
prevX = x;
return {
annotation,
style: `transform:translate(${x}px,${y}px)`,
style: `transform:translate(${x}px,${y}px)`.htmlSafe(),
icon: iconFor[annotation.type],
iconClass: iconClassFor[annotation.type],
staggerClass: prevHigh ? 'is-staggered' : '',