-
Notifications
You must be signed in to change notification settings - Fork 135
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
Problem with multiple yAxis & toggleSeries() #91
Comments
Thank you for the detailed description and sorry for the delayed response. Such an issue has already been fixed previously, but I will check again. |
But if I use a config like this one:
and when I disable first serie, the left yaxis (even if serie 2, 3 and 4 are active) is invisible. Is there another solution for this case? You tagged my issues as |
Sorry, no progress yet. I have been occupied with a major refactor looking into the increasing bundle size. |
meet the same problem in Vue project. until I find that when toggling legend the series props will change, |
The issue is fixed as specified in the commit mentioned above. |
Hi! Thank you for the update. Unfortunately, I still have a problem with yAxis and I can't achieve the intended effect. It's very important for our project. EDIT: I'm sorry – probably it works with |
Yeah, the showAlways param is important and will help in achieving the intended result. |
Generally, after update, we find a lot of strange situations: For example in this case:
But finally, we resigned from |
Demo: https://codepen.io/lukaszflorczak/pen/yrpWgZ
I have a chart like that in my project. I have 6 series of data: 1-4 use common y-axis on the left and 5-6 use common y-axis on the right. I also have buttons to disable/enable each series.
Problem 1
If I disable for example the first series I need to change params of y-axis for series 2-4 because the first series y-axis is not visible. In the demo, you can see
prepareYaxis()
method for this. And it looks that it works. Unfortunately, if I disable any series I can't enable it again.In this issue: apexcharts/apexcharts.js#366 I got a suggestion to use
showAlways
option, but I'm doing something wrong or it doesn't work when I toggle the data series.I tried to use
render()
method, but it doesn't work (exist?). In the local environment, I use[email protected]
and[email protected]
.How should I do charts like that? Where is the problem?
Problem 2
It's not so important for me at this moment, and maybe it's related to problem 1, but... At the beginning I see all data in the tooltip together:
But if I disable one of the series I see the separate tooltip for each chart/series:
I mentioned it here: apexcharts/apexcharts.js#367 before.
PS. I hope it's not a problem that I start a new issue. But I thought it would be better to start a new one in
vue-apexcharts
repo because maybe some of those problems are specific just for the Vue version.The text was updated successfully, but these errors were encountered: