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
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: