[New Feature] Second Y-axis support

Bug #794891 reported by chrismd on 2011-06-09
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graphite
Fix Released
High
Nicholas Leskiw

Bug Description

We need this feature. I offer a case of beer to whoever implements it. Seriously.

chrismd (chrismd) on 2011-06-09
Changed in graphite:
status: New → Confirmed
importance: Undecided → High
Nicholas Leskiw (nleskiw) wrote :

I have implemented a basic version of this feature in the following branch:

lp:~nleskiw/graphite/secondYAxis

Many of the yAxis functions (yMin, yMax, yStep, areaMode=stacked) will not behave as expected in this branch if coupled with the secondYAxis() function.

To use the second y-Axis simply surround the metrics with secondYAxis():

http://my.graphite.com/?width=586&height=308&_salt=1308083503.098&target=brand.server*.disk.freeSpaceInBytes&target=secondYAxis(brand.server*.disk.usersLoggedIn)

I'm going to continue to work on this, and update some of these functions to apply it to one axis or the other like &yMaxLeft=1200 or &areaMode=stackedRight. But if you really, really want two y-axes, you can implement this.

Please, please test this and let me know if you find bugs!

Nicholas Leskiw (nleskiw) wrote :

Just added many new paramters to control yAxis options for left & right axes in secondYAxis mode as well as differentiation functions:

 - yMinLeft/Right yMaxLeft/Right yStepLeft/Right yLimitLeft/Right
These all do the same as the non-secondYAxis yMax/yMin/yStep/yLimit functions, but just to one axis.

- 'rightWidth', 'rightColor', 'rightDashed', 'leftWidth', 'leftColor', 'leftDashed'
These params set width, color or dashed for all lines associated to the left or right axis.

Haven't gotten any feedback on this yet - please let met know what you think.

Nicholas Leskiw (nleskiw) wrote :

New Feature committed to trunk.

Changed in graphite:
assignee: nobody → Nicholas Leskiw (nleskiw)
milestone: none → 1.0.0
status: Confirmed → Fix Committed
Michael Leinartas (mleinartas) wrote :

This was release in 0.9.9

Changed in graphite:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions