Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在下面这段使用到flutter_echarts的代码中,tooltips里formatter的onclick填入什么样的方法,才能在onMessage中获取到数据? #184

Open
EnV1ronment opened this issue Jul 3, 2023 · 0 comments

Comments

@EnV1ronment
Copy link

EnV1ronment commented Jul 3, 2023

Echarts(
reloadAfterInit: true,
option: '''
{
dataset: {
dimensions: ['name', 'value'],
source: ${jsonEncode(_data1)},
},
tooltip: {
enterable: true,
trigger: 'item',
formatter: function (params) {
var data = params.data.name;

                      return '数据:' + data + ' <button onclick="">点击查看</button>';
                    },
                  },
                  .....
                }
              ''',
              onMessage: ( message) {
              },
            )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant