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

Fix spacing between horizontal legend and x-axis #3038

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kzmi
Copy link

@kzmi kzmi commented Apr 21, 2017

The position of horizontal legend is incorrect because the height of X-axis is added twice.
When X-axis labels were rotated, large space will appear above the legend like this:
barchart

This commit fixes the issue.
The legend will be displayed too close to X-axis labels, but it would be another issue.
It seems that no property specifies spacing between the legend and axis.
In LegendRenderer#renderLegend(), yOffset of Legend is used as the margin from the outer edge of the chart.

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

Successfully merging this pull request may close these issues.

1 participant