Permalink
Browse files

Fix areaMode=stacked with drawAsInfinite()

Another messy edge case. Closes #31
  • Loading branch information...
1 parent 8ecbe10 commit c202191cda99698ead01ebae9e58d8887136433b @mleinart mleinart committed Mar 15, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 webapp/graphite/render/glyph.py
View
2 webapp/graphite/render/glyph.py
@@ -771,6 +771,8 @@ def drawLines(self, width=None, dash=None, linecap='butt', linejoin='miter'):
if self.areaMode == 'stacked' and not self.secondYAxis: #TODO Allow stacked area mode with secondYAxis
total = []
for series in self.data:
+ if 'drawAsInfinite' in series.options:
+ continue
for i in range(len(series)):
if len(total) <= i: total.append(0)

0 comments on commit c202191

Please sign in to comment.