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

Apexcharts management of series #44

Closed
arkhenstone opened this issue Aug 21, 2018 · 6 comments
Closed

Apexcharts management of series #44

arkhenstone opened this issue Aug 21, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@arkhenstone
Copy link

Feels like something is wrong with the way Apexcharts remember the state of the chart (at least for line type).

I use one instance of apexcharts, where depending the category the user choose from a select input, the js asynchronously fetch for data, and inject series and config into apexcharts.

This works but it break quite some functionnalities :

FIrst the zoom is broken (since the latest version of apexcharts it seems), whatever zoom tool takes the axis ranges from the default data shown at first render.

Also the reset zoom reinject default series.

Maybe I missed something in the docs ?

See the gif :

deepin-screen-recorder_select area_20180821090851

@junedchhipa
Copy link
Contributor

I think this is related to the issue #38
The zooming options keep the initial state in memory, but when updating data, it seems the new data is not reflected.
I am working on this, thanks for reporting

@junedchhipa junedchhipa added the bug Something isn't working label Aug 21, 2018
@junedchhipa
Copy link
Contributor

I just tested the updateOptions() method with a different set of timeseries and it seems like for me zooming works as expected.
Can I see what options are you updating in updateOptions() method?

@junedchhipa
Copy link
Contributor

Also, I would suggest trying with the latest build v1.3.9

@arkhenstone
Copy link
Author

Still doesn't work. I use the vue wrapper, so I'm just setting the series variable. Maybe the problem is with the vue-wrapper then.

@junedchhipa
Copy link
Contributor

Yeah, maybe. I will update the vue wrapper's dependency and test updating the series with a large difference in the x-axis values.

@junedchhipa
Copy link
Contributor

junedchhipa commented Sep 8, 2018

@arkhenstone
Please try the latest release 1.4.10 - I have done major changes to the management of series. Tested a lot of use cases similar to what you have described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants