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_: if max_ == min_:
ratio = 1 ratio = 1
else: else:
ratio = .3 + .7 * value / (max_ - min_) ratio = .3 + .7 * (value - min_) / (max_ - min_)
country = map.find('.//*[@id="%s"]' % country_code) country = map.find('.//*[@id="%s"]' % country_code)
if country is None: if country is None:
continue continue

Loading…
Cancel
Save