-
Notifications
You must be signed in to change notification settings - Fork 462
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
No correct support for multiples yAxis #201
Comments
Thanks for this. It looks looks generally good. Could you create a pull request and a few jsfiddles showing its use. |
It has another situation like this: use @ValentinH's method it just can solve multiples yAxis, but can't solve multiples tab with multiples yAxis. finally i use |
I think this is a different issue. You are giving a solution that works for your problem but that doesn't work anymore for multiple axis. Indeed, your code still uses chart[axisName][0] which means only the first axis is updated. |
OK , thank you for your advise. |
I have run into this as well, trying to manipulate a single y axis on a chart with multiple y axes. Have you made any progress on this? |
Borrowing this JSFiddle (http://jsfiddle.net/ashwinp/J7LmP/4/) to illustrate that the application behaves the same regardless of the use of linkedTo - delete it and re-run and you will see the behavior remains. |
The code I provided only handle the watch on multiple Y-Axis... |
Understood, I wasn't sure if more had been done. Thanks for the quick reply. |
What kind of manipulation do you wanna do? Cause I added a getter on the Highcharts object from which you can get each axis. |
I am trying to add functionality to scroll and zoom axes of only some of the set of y axes in the chart. |
I fixed my issue. The code that I thought was setting the y axis for each series was using an incorrect variable (copy/paste issue embarrassingly). |
So, is there an easy way to get this functionality? Should I fork and patch it in and use my fork? |
The code I posted in this issue works well for handling multiple axis but I haven't submitted a pull request because some other parts deal with axis and I don't really understand these parts... |
Was this ever addressed? I would also like to the use the multiple y-axis functionality |
The suggestion for the configuration of axes is not enough because it does not support creating/removing axis dynamically. I have done it like this:
This way at least supports creating/deleting axis. I am unsure of how to correct the processExtremes function, though. |
Is the support for multiple axis removed completely in version 1.0.0? |
New issue with a jsfiddle please |
Added a title for xAxis and yAxis to config in 'basic-example' Tried to add multiple yAxis (like http://www.highcharts.com/demo/combo-multi-axes): |
It's working if I'm changing the x/yAxis to array instead of dictionary in defaultoptions (https://github.com/pablojim/highcharts-ng/blob/master/src/highcharts-ng.js#L78):
|
Thanks, it looks like angular merge has some slightly strange behaviour merging dicts and arrays. |
@philippone this is now partially fixed. It now supports multiple axes but does not support the dynamic addition & deletion of axes. This would require tracking of the axes like we track series here: https://github.com/pablojim/highcharts-ng/blob/master/src/highcharts-ng.js#L42 PRs accepted! |
Highcharts allows to specify several yAxis for a given chart (a demo can be see here: http://www.highcharts.com/demo/combo-multi-axes).
However, this is not properly handle by highcharts-ng:
For instance, this (link to source):
sets only the first axe extremes provided axis is an Axis on not an Array of Axis.
Again, for the watch on config.yAxis, the code is:
and for my opinion it should be something like this:
What do you think? If this last suggestion is OK, I can make a pull request.
Thanks by advance,
Valentin
The text was updated successfully, but these errors were encountered: