ecomfe / vue-echarts

Vue.js component for Apache ECharts™.
https://vue-echarts.dev
MIT License
9.43k stars 1.48k forks source link

[vue 3]Click on chart does not work for me. Is it possible? #723

Closed Claus1 closed 11 months ago

Claus1 commented 11 months ago

Confirmation

@click do not work for me. If it is realized, please, point an working example.

<v-chart ref="chart" :option="options" :style="styleSize" @click="clicked" autoresize="true" />

my options:

options : {
        responsive: true,
        maintainAspectRatio: false,        
        legend: {
                data: [],
                bottom: 10,
              },
        tooltip: {
          trigger: 'axis',
          position: function (pt) {
            return [pt[0], '10%'];
          }
        },
        title: {
          left: 'center',
          text: ''
        },
        toolbox: {
          feature: {
            dataZoom: {
              yAxisIndex: 'none'
            },

          }
        },
        xAxis: {
          type: 'category',
          boundaryGap: false,
          data: null
        },
        yAxis: {
          type: 'value',
          boundaryGap: [0, '100%']
        },
        dataZoom: [
          {
            type: 'inside',
            start: 0,
            end: 10
          },
          {
            start: 0,
            end: 10
          }
        ],
        series: []
      }
    }
Justineo commented 11 months ago

If you are reporting a bug, please use the corresponding issue form and provide a runnable minimal reproduction. Thank you.

Claus1 commented 11 months ago

Do you know ready-to-use template with the latest vue and vue-echart for making reproduction?

Justineo commented 11 months ago

If you choose the correct issue template you will see the guide.