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

Chart updates #200

Closed
Sile25 opened this issue Nov 17, 2018 · 2 comments
Closed

Chart updates #200

Sile25 opened this issue Nov 17, 2018 · 2 comments

Comments

@Sile25
Copy link

Sile25 commented Nov 17, 2018

How can i update every chart? And do updates work on Candlestick charts too?

@junedchhipa
Copy link
Contributor

junedchhipa commented Nov 17, 2018

https://apexcharts.com/docs/methods/#updateSeries

Yes, updateSeries() method works on candlestick charts too

chart.updateSeries([{
  data: [{
    x: new Date(2016, 01, 01),
    y: [51.98, 56.29, 51.59, 53.85]
  },
  {
    x: new Date(2016, 02, 01),
    y: [53.66, 54.99, 51.35, 52.95]
  }]
}])

@Sile25
Copy link
Author

Sile25 commented Nov 17, 2018

https://apexcharts.com/docs/methods/#updateSeries

Yes, updateSeries() method works on candlestick charts too

chart.updateSeries([{
  data: [{
    x: new Date(2016, 01, 01),
    y: [51.98, 56.29, 51.59, 53.85]
  },
  {
    x: new Date(2016, 02, 01),
    y: [53.66, 54.99, 51.35, 52.95]
  }]
}])

Awesome, thank you!

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