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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2ae2a-4e6b9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2ae2a-4e6b9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?