Skip to content

Instantly share code, notes, and snippets.

@mleinart
Created March 15, 2013 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mleinart/5172306 to your computer and use it in GitHub Desktop.
Save mleinart/5172306 to your computer and use it in GitHub Desktop.
diff --git a/webapp/graphite/render/glyph.py b/webapp/graphite/render/glyph.py
index 15ceb0d..dadf411 100644
--- a/webapp/graphite/render/glyph.py
+++ b/webapp/graphite/render/glyph.py
@@ -755,6 +755,8 @@ class LineGraph(Graph):
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment