Closed cassmtnr closed 1 year ago
I have a lineChart and when I navigate to a children route or a parent route, the tooltips keep on my DOM, if I use
ngOnDestroy() { .selectAll('.nvtooltip').remove(); }
It will destroy my tooltips, but I wanted to destroy my chart too.
What about the method clearElement(), how do I use that referencing to the nvd3 chart? Tried with viewChild on my chart but it didn't worked.
+1
I have a lineChart and when I navigate to a children route or a parent route, the tooltips keep on my DOM, if I use
ngOnDestroy() { .selectAll('.nvtooltip').remove(); }
It will destroy my tooltips, but I wanted to destroy my chart too.
What about the method clearElement(), how do I use that referencing to the nvd3 chart? Tried with viewChild on my chart but it didn't worked.