flutter_echarts icon indicating copy to clipboard operation
flutter_echarts copied to clipboard

请问如何触发onMessage呢

Open anjiajie opened this issue 3 years ago • 2 comments

我想要获取点击Echart图的Y轴数据,但是发现点击时,onMessage并不会返回任何消息,并且测试后发现onMessage并没有调用。我的extraScript方法是这样的:

extraScript: ''' chart.on('click', (params) => {

     if(params.componentType === 'series') {

            Messager.postMessage(JSON.stringify({

                  type: 'select',

                  payload: params.dataIndex,

              }));

          }

   });

''',

anjiajie avatar Dec 09 '21 01:12 anjiajie

点折线的圆圈(折线的点),就会触发

CiciIvory avatar Dec 15 '21 08:12 CiciIvory

点折线的圆圈(折线的点),就会触发

谢谢,成功了

anjiajie avatar Dec 17 '21 06:12 anjiajie