[Vuejs]-How to get the heatmapInstance of heatmap-vue

0👍

I figured it out and I didn’t even think of "refs" in vue.js
Nevertheless here is the solution

    <heatmapjs-vue class="heatmapjsContainer" :data="heatData" ref="heatmap">
    </heatmapjs-vue>
    ...
    this.$refs.heatmap.getValueAt({
      x: x,
      y: y,
    });

Leave a comment