Commits

andybak committed 0797b2c

Always Pass 0 to Google instead of Python falsiness

Comments (0)

Files changed (1)

chart_tools/templatetags/chart_tags.py

 def bar_chart(values, captions, size='580x100', max_value=None):
     max_value = max_value or max(values)
     return {
-        'values': values,
+        'values': [0 if not x else x for x in values], # Pass 0 to Google instead of Python falsiness
         'captions': captions,
         'size': size,
         'max_value': max_value,