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

Duplicate/extra quantity in label #4

Closed
WizardTig opened this issue Sep 25, 2012 · 1 comment
Closed

Duplicate/extra quantity in label #4

WizardTig opened this issue Sep 25, 2012 · 1 comment

Comments

@WizardTig
Copy link

The value is duplicated in the tooltip when including a label. For example, if a value is 5, it will show "55". In a pie chart it displays the value and percent together. For example, f a value is 5 out of a total 10, it will show "550.00%". See examples of this on http://pygal.org/metadata/

This fix removes the first instance of the value, leaving "5" or "50.00%" in the examples. It has only been tested on line and pie graphs.

util.py Line 326

# CURRENT CODE
value = dict(raw_value).pop('value')

# FIXED CODE
value = raw_value.pop('value')
@paradoxxxzero
Copy link
Member

Thanks for your report

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

2 participants