Browse Source

Fix value overwrite in map. Fix #275

pull/278/head 2.0.8
Florian Mounier 9 years ago
parent
commit
eb9cf3d7cb
  1. 7
      docs/changelog.rst
  2. 2
      pygal/__init__.py
  3. 4
      pygal/graph/map.py

7
docs/changelog.rst

@ -2,6 +2,12 @@
Changelog Changelog
========= =========
2.0.8
=====
* Fix value overwrite in map. (#275)
2.0.7 2.0.7
===== =====
@ -14,6 +20,7 @@ Changelog
* Avoid x label formatting when label is a string * Avoid x label formatting when label is a string
2.0.5 2.0.5
===== =====

2
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 pkg_resources
import sys import sys

4
pygal/graph/map.py

@ -120,8 +120,8 @@ class BaseMap(Graph):
node.set('class', ' '.join(cls)) node.set('class', ' '.join(cls))
alter(node, metadata) alter(node, metadata)
value = self._get_value((area_code, value)) val = self._get_value((area_code, value))
self._tooltip_data(area, value, 0, 0, 'auto') self._tooltip_data(area, val, 0, 0, 'auto')
self.nodes['plot'].append(map) self.nodes['plot'].append(map)

Loading…
Cancel
Save