Permalink
Browse files

Fix values inter dependency

  • Loading branch information...
1 parent c7c4e21 commit b7a394807ca703c65720d1be5725e9a42ef2948e @paradoxxxzero paradoxxxzero committed Oct 1, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 pygal/graph/base.py
View
@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+ # -*- coding: utf-8 -*-
# This file is part of pygal
#
# A python svg graph plotting library
@@ -48,7 +48,9 @@ def __init__(self, config, series):
self._box = Box()
self.view = None
if self.logarithmic and self.zero == 0:
- self.zero = self._min
+ # Explicit min to avoid interpolation dependency
+ self.zero = min(
+ val for serie in self.series for val in serie.values)
if self.series and self._has_data():
self._draw()

0 comments on commit b7a3948

Please sign in to comment.