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

Always display Y-Axis even when the series is deselected #339

Closed
D0ct0rBish0p opened this issue Feb 21, 2019 · 3 comments
Closed

Always display Y-Axis even when the series is deselected #339

D0ct0rBish0p opened this issue Feb 21, 2019 · 3 comments
Labels
feature-request New feature or request

Comments

@D0ct0rBish0p
Copy link

Hi there, please consider this Codepen example: https://codepen.io/D0ct0rBish0p/pen/XOwdxW

I have assigned the Y Axis for Series 1 and Series 2 both to Series 1, and I always want to display only a single Y Axis for either series. So I've set the second Y Axis to "show: false" which produces the required result.

However, as soon as I disable Series 1 by clicking on it in the Legend, it hides the left Y Axis and no Axis is displayed anymore on the left side. Is it possible to have an option, for example "alwayShow: true" or something to this effect ?

I hope my example is clear, please let me know if I need to provide additional details.

@junedchhipa junedchhipa added the feature-request New feature or request label Feb 21, 2019
@junedchhipa
Copy link
Contributor

Good point, it looks weird to have a series visible with no y-axis because it is associated with a hidden y-axis.

  1. I will check if the series which is visible has an associated y-axis. If it is, I will avoid hiding it.
  2. I will provide a property "alwaysShow" as suggested by you.

I will try the 1st one before providing the new option.

@D0ct0rBish0p
Copy link
Author

Thank you for the quick response ! I'm really loving Apexcharts so far and am working on implementing it into my reporting dashboards as replacement for morris charts. Really awesome work.

Looking forward to have this feature implemented.

@junedchhipa
Copy link
Contributor

I have provided a new property yaxis.showAlways: true as the 1st option I mentioned above didn't really work well. Will release a minor version soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants