Now that the echarts bar chart can be displayed in vue, what should I do if you want to add a click event to each column to send the data to the new page?

The echarts bar chart can be displayed in

vue, so what should I do now to add a click event to each column to pass the data to the new page?

how to introduce echarts/config files?

Mar.04,2021

isn't echarts the api with click events

myChart.on('click', function (params) {
    console.log(params)
});

events and behaviors in ECharts
Mouse event


didn't you say there was a click event upstairs, and then you use js jump belt to take the parameters you need and accept them with route

Menu