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

Multiple pie chart legend label width #1011

Closed
rhenna opened this issue Feb 19, 2015 · 3 comments
Closed

Multiple pie chart legend label width #1011

rhenna opened this issue Feb 19, 2015 · 3 comments
Labels
C-bug Category: This is a bug resolved maybe

Comments

@rhenna
Copy link

rhenna commented Feb 19, 2015

An example of the issue is here: http://jsfiddle.net/2rfpnnso/

It appears that the width of a legend label for the pie chart is calculated only once per data key. Subsequent charts on the same page that share keys will use the previously calculated label width. In the link above, the second pie chart uses keys from the data in the first pie chart, causing its longer labels to overlap. In the third pie chart, the first series has a much shorter label than the space allocated for it.

@kdekooter
Copy link

👍 having similar issues. We should be able to give legend labels a fixed size, preferably using CSS.

@masayuki0812
Copy link
Member

Thanks for reporting. It's a bug and I think it's been fixed in the commit above. I'll release this fix in the next version 0.4.10 shortly. Thanks!

@masayuki0812
Copy link
Member

0.4.10 has been released, so let me close. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug resolved maybe
Projects
None yet
Development

No branches or pull requests

3 participants