share 0-line between y axes #1271
I haven't had a chance to look into putting this in the Grafana code, but here's the pseudo-code algorithm I came up with for changing the min and max of the left and right y-axes so that a number on the left axis is "equivalent" to a number on the right axis [0 being that value on both sides in the example above]:
It's actually more straightforward to do this when you have two "equivalent" values between the axes, as you can figure out the simple linear translation between the 2 axes using those 2 points and then take the max of the normalized axes' max values and the min of the normalized axes' min values and extend both of the axes to those limits:
I'll see if I can get this together this weekend.
Edit: It looks like this is handled by jquery.flot.js; should Flot requests go there, or should it be changed here for this project?
I am also looking into my ability to contribute; hopefully, I can get that straightened out in the near future.