Permalink
Browse files

Add option for hiding X axis too

  • Loading branch information...
1 parent fcbea86 commit f12ac12d56458dd3e336ac735154e0469d030005 @bitprophet committed Nov 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 webapp/graphite/render/glyph.py
@@ -382,7 +382,7 @@ class LineGraph(Graph):
'yMaxRight', 'yLimitLeft', 'yLimitRight', 'yStepLeft', \
'yStepRight', 'rightWidth', 'rightColor', 'rightDashed', \
'leftWidth', 'leftColor', 'leftDashed', 'xFormat',
- 'yBoundsOnly')
+ 'yBoundsOnly', 'hideXAxis')
validLineModes = ('staircase','slope','connected')
validAreaModes = ('none','first','all','stacked')
validPieModes = ('maximum', 'minimum', 'average')
@@ -522,7 +522,7 @@ def drawGraph(self,**params):
#Setup axes, labels, and grid
#First we adjust the drawing area size to fit X-axis labels
- if not self.params.get('hideAxes',False):
+ if not self.params.get('hideAxes', self.params.get('hideXAxis', False)):
self.area['ymax'] -= self.getExtents()['maxAscent'] * 2
#Now we consolidate our data points to fit in the currently estimated drawing area

0 comments on commit f12ac12

Please sign in to comment.