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

在改变dataset时图表只更新了数据,并未更新图表的name #9

Open
xiatianshitiancai opened this issue Sep 29, 2022 · 2 comments

Comments

@xiatianshitiancai
Copy link

我在编辑数据DataSet的srouce里面的值时数据其中包含name的字段
https://codesandbox.io/s/vuecharts3-connect-demo-forked-gby1vk?file=/src/App.vue

@lloydzhou
Copy link
Owner

你可以试一试给图表的series指定一个name

    <Line v-for="item in 2" :key="item" :name="dataSrouce[0][item]" />

image

点击后

image

@lloydzhou
Copy link
Owner

@xiatianshitiancai
或许用原生的echarts语法动态更新dataset的配置,也会是一样的问题。
如果是这样的话,或许可以去echarts官方提一个issue

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

2 participants