diff --git a/docs/changelog.rst b/docs/changelog.rst index 9963485..bafec30 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,12 @@ Changelog ========= +2.0.8 +===== + +* Fix value overwrite in map. (#275) + + 2.0.7 ===== @@ -14,6 +20,7 @@ Changelog * Avoid x label formatting when label is a string + 2.0.5 ===== diff --git a/pygal/__init__.py b/pygal/__init__.py index 174dbba..1e9779c 100644 --- a/pygal/__init__.py +++ b/pygal/__init__.py @@ -24,7 +24,7 @@ and the maps extensions namespace module. """ -__version__ = '2.0.7' +__version__ = '2.0.8' import pkg_resources import sys diff --git a/pygal/graph/map.py b/pygal/graph/map.py index 9e21e0e..9f4a7bf 100644 --- a/pygal/graph/map.py +++ b/pygal/graph/map.py @@ -120,8 +120,8 @@ class BaseMap(Graph): node.set('class', ' '.join(cls)) alter(node, metadata) - value = self._get_value((area_code, value)) - self._tooltip_data(area, value, 0, 0, 'auto') + val = self._get_value((area_code, value)) + self._tooltip_data(area, val, 0, 0, 'auto') self.nodes['plot'].append(map)