-
Can Dragging be implemented with vue-echarts? Related question: Is there an example of how 'convertFromPixel' can be used when using vue-echarts? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Give the chart component a ref and you can call <template>
<v-chart ref="chart" .../>
</template>
<script>
export default {
mounted () {
this.$refs.chart.convertFromPixel(...)
}
}
</script> |
Beta Was this translation helpful? Give feedback.
-
Vue.js 3.2.31 (using Composition API) Objective was to create a LINE graph (details of the graph set in The following worked for me ...
Additional code/details that may be desired can be found in the documentation here: https://apache.github.io/echarts-handbook/en/how-to/interaction/drag/, but the above code is the essential part. |
Beta Was this translation helpful? Give feedback.
Vue.js 3.2.31 (using Composition API)
Echarts 5.3.0
vue-echarts 6.0.2
Objective was to create a LINE graph (details of the graph set in
myOption.series[0]
)that would implement dragging for the points of the graph.
The following worked for me ...