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

updating scatter data doesn't work #91

Closed
Tzahile opened this issue Jul 8, 2019 · 1 comment
Closed

updating scatter data doesn't work #91

Tzahile opened this issue Jul 8, 2019 · 1 comment

Comments

@Tzahile
Copy link

Tzahile commented Jul 8, 2019

Hello,
I'm using scatter with dynamic data;
I render many points to form a circle, and with an interval I change their value to spin around the (0,0).
-- the points are in a format of [ [x1, y1], [x2, y2], [x3, y3], ...] as required for scatter.

I get the points as a prop and use watch to track any change.
In my watch I wrote:

props: {
  spinData: Array,
},
watch: {
  spinData(newData){
    this.$children[0].chart.update(newData);
  }
}

I also tried like how you show in your demo -

this.$children[0].chart.series[0].data = newData;

For some reason, the graph doesn't change at all.. did I miss something?
in Data() I have

updateArgs: [false, false, { duration: 3000 }]

Thanks in advance!

@Denyllon
Copy link
Contributor

Denyllon commented Jul 9, 2019

Hi @Tzahile ,

Thank you for reporting the issue.
Could you try to reproduce it on any sandbox platform (e.g Codesandbox or Stackblitz), and provide me with a link?

Kind regards!

@Denyllon Denyllon added the Pending reply Further information is requested label Jul 9, 2019
@wchmiel wchmiel removed the Pending reply Further information is requested label Sep 30, 2020
@wchmiel wchmiel closed this as completed Sep 30, 2020
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

3 participants