66import Component from ' @glimmer/component' ;
77import { tracked } from ' @glimmer/tracking' ;
88import { hash } from ' @ember/helper' ;
9- import { didInsert , didUpdate } from ' @ember/render-modifiers ' ;
9+ import { guidFor } from ' @ember/object/internals ' ;
1010import { schedule , next } from ' @ember/runloop' ;
11+ import { didInsert , didUpdate } from ' @ember/render-modifiers' ;
1112import d3 from ' d3-selection' ;
1213import d3Scale from ' d3-scale' ;
1314import d3Axis from ' d3-axis' ;
@@ -20,7 +21,6 @@ import Tooltip from 'nomad-ui/components/chart-primitives/tooltip';
2021import VAnnotations from ' nomad-ui/components/chart-primitives/v-annotations' ;
2122import windowResize from ' nomad-ui/modifiers/window-resize' ;
2223import styleString from ' nomad-ui/utils/properties/glimmer-style-string' ;
23- import uniquely from ' nomad-ui/utils/properties/uniquely' ;
2424
2525const lerp = ([low , high ], numPoints ) => {
2626 const step = (high - low) / (numPoints - 1 );
@@ -64,11 +64,16 @@ export default class LineChart extends Component {
6464 @tracked element = null ;
6565 @tracked ready = false ;
6666
67- @uniquely (' title' ) titleId;
68- @uniquely (' desc' ) descriptionId;
69-
7067 latestMouseX = 0 ;
7168
69+ get titleId () {
70+ return ` title-${ guidFor (this )} ` ;
71+ }
72+
73+ get descriptionId () {
74+ return ` desc-${ guidFor (this )} ` ;
75+ }
76+
7277 get xProp () {
7378 return this .args .xProp || ' time' ;
7479 }
0 commit comments