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

piechart - yOffset #39

Closed
mythodeia opened this issue Apr 21, 2015 · 0 comments
Closed

piechart - yOffset #39

mythodeia opened this issue Apr 21, 2015 · 0 comments

Comments

@mythodeia
Copy link

Hello
i would like to thank you for open sourcing this beast of a library. You have made our lives a lot easier.
Now my question is regarding the yOffset of the legend for the pie charts.
I am showing the legend on the center of the pie chart and i am using yOffset as well.
As i can see in the chartlegendrendered the yOffset is not taken into account when the legend's position is PiechartCenter.
so should this:
var posY = (viewPortHandler.chartHeight / 2.0 - _legend.neededHeight / 2.0);
be replaced with this:
var posY = (viewPortHandler.chartHeight / 2.0 - _legend.neededHeight / 2.0) + (_legend.yOffset);

i would appreciate your help on this
thanks

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