JiahuiChen99 commented on issue #16659:
URL: https://github.com/apache/echarts/issues/16659#issuecomment-1063997017
> > In vue data() I have a heatmap_chart variable initialized to null,
>
> @JiahuiChen99 This is not expected. Just remove the `heatmap_chart`
variable from vue `data` block.
Declaring the chart in the mounted scope, like this, seems to work.
```
mounted(){
let heatmap_chart = echarts.init();
}
```
But, how am I supposed to reference the chart later in the beforeUnmount
block, so that I can dispose it? And what's the reason why, what I did before
the doesn't work?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]