-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
timelion secondary y axis removes configuration of the first one #9114
Comments
@rashidkpc the issue seems to be that somewhere (if you can help me point where i would really appreciate it) on the way from server to client undefined's get converted to null's ... _.merge function here will overwrite all values from the first array with nulls from the second (but it wouldn't do so with undefined) ... the null condition doesnt work on array elements or nested objects. |
I don't know if this is the exact same bug, but there seems to be a rather odd behaviour when having multiple y-axis (we have 7 in one graph) - the position in which the series are being declared influences the rendering. I.e. series declared in the beginning will see their yaxis options being ignored. |
@manuelbernhardt seems to be the same issue |
It's actually pretty easy to reproduce this one:
Moving the first Note that I observe this behaviour both on the 5.x branch and on a deployed 5.0 version of Kibana |
I found the cause. For some reason, the s1: [null, null, { ... }] The result that needs to be passed down to flot needs to be an Quoting the lodash doc: I'm seeing if I can come up with a solution, but it will most certainly contain a special treatment for |
@manuelbernhardt _merge would work if those values would be undefined instead of null. |
This is where the data is pulled from the server I think. AFAIK |
@ppisljar pretty sure this will fix it.
|
@rashidkpc @ppisljar I can confirm that this fixes it, thanks! I backported it to a 5.0 deployment, will this make it into one of the next 5.x releases? |
@manuelbernhardt yeah, this will go into 5.x |
Backports PR #9197 **Commit 1:** fixing timelion Y axis #9114 * Original sha: 54107d6 * Authored by ppisljar <[email protected]> on 2016-11-23T09:37:52Z
Backports PR #9197 **Commit 1:** fixing timelion Y axis #9114 * Original sha: 54107d6 * Authored by ppisljar <[email protected]> on 2016-11-23T09:37:52Z
Backports PR #9197 **Commit 1:** fixing timelion Y axis #9114 * Original sha: 54107d6 * Authored by ppisljar <[email protected]> on 2016-11-23T09:37:52Z
…9200) Backports PR #9197 **Commit 1:** fixing timelion Y axis #9114 * Original sha: 54107d6 * Authored by ppisljar <[email protected]> on 2016-11-23T09:37:52Z
…lastic#9200) Backports PR elastic#9197 **Commit 1:** fixing timelion Y axis elastic#9114 * Original sha: 54107d6 * Authored by ppisljar <[email protected]> on 2016-11-23T09:37:52Z Former-commit-id: accc45c
in the latest master when you set a secondary y axis on timelion it would remove all the configuration you set on the first one (so the first one behaves like a default axis)
for example
(.static(4000), .static(5000), .static(6000)).yaxis(min=5000, position=right), .static(3000).yaxis(2, position=left)
will show both axes on the left (position=right on the first axis will get ignored)
The text was updated successfully, but these errors were encountered: