Browse Source

Fix range

pull/35/head
Florian Mounier 12 years ago
parent
commit
3362192c7f
  1. 2
      pygal/graph/worldmap.py

2
pygal/graph/worldmap.py

@ -74,7 +74,7 @@ class Worldmap(Graph):
if max_ == min_:
ratio = 1
else:
ratio = .3 + .7 * value / (max_ - min_)
ratio = .3 + .7 * (value - min_) / (max_ - min_)
country = map.find('.//*[@id="%s"]' % country_code)
if country is None:
continue

Loading…
Cancel
Save