Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pie Chart - missing labels #442

Open
paulmalherbe opened this issue Oct 7, 2018 · 0 comments
Open

Pie Chart - missing labels #442

paulmalherbe opened this issue Oct 7, 2018 · 0 comments

Comments

@paulmalherbe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant