You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
The following code produces the attached pie chart test.png.
Their are 4 missing labels, Apr, May, Jun and Jul.
Is this a bug or am I missing something?
import pygal
cols = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
vals = [119, 317, 95, 46, 67, 75, 52, 318, 238, 88, 117, 109]
chart = pygal.Pie(print_labels=True, show_legend=False)
chart.title = 'WESTERN PROVINCE CRICKET CLUB\n Active for Period 2014-01 to 2014-12 (Count)'
for num, dat in enumerate(cols):
chart.add(dat, [{'value': vals[num], 'label': dat}])
chart.render()
Hi
The following code produces the attached pie chart test.png.
Their are 4 missing labels, Apr, May, Jun and Jul.
Is this a bug or am I missing something?
import pygal
cols = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
vals = [119, 317, 95, 46, 67, 75, 52, 318, 238, 88, 117, 109]
chart = pygal.Pie(print_labels=True, show_legend=False)
chart.title = 'WESTERN PROVINCE CRICKET CLUB\n Active for Period 2014-01 to 2014-12 (Count)'
for num, dat in enumerate(cols):
chart.add(dat, [{'value': vals[num], 'label': dat}])
chart.render()
Thanks
test.pdf
The text was updated successfully, but these errors were encountered: