Skip to content

Commit

Permalink
Minor fix for empty logarithmic chart
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Sep 9, 2014
1 parent 8f42442 commit 85819bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
V 1.5.1 - UNRELEASED
V 1.5.2 - UNRELEASED

V 1.5.1
Add `stack_from_top` option to reverse stack graph data order
Minor fix for empty logarithmic chart

V 1.5.0
Add per serie configuration
Expand Down
2 changes: 1 addition & 1 deletion pygal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

__version__ = '1.5.0'
__version__ = '1.5.1'
import sys
from pygal.config import Config
from pygal.ghost import Ghost, REAL_CHARTS
Expand Down
2 changes: 1 addition & 1 deletion pygal/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, config, series, secondary_series, uuid, xml_filters):
[get(val)
for serie in self.series for val in serie.safe_values]))

self.zero = min(positive_values or 1,) or 1
self.zero = min(positive_values or (1,)) or 1
self._draw()
self.svg.pre_render()

Expand Down

0 comments on commit 85819bf

Please sign in to comment.