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

Legend vertical offset #2202

Closed
valeIT opened this issue Feb 27, 2017 · 2 comments
Closed

Legend vertical offset #2202

valeIT opened this issue Feb 27, 2017 · 2 comments

Comments

@valeIT
Copy link

valeIT commented Feb 27, 2017

Is there a way to have a vertical (y-)offset for the legend for the PieChart? I have it top-left aligned and I wanted to add some spacing from the top, is it possible?

@liuxuan30
Copy link
Member

    /// The offset this component has on the x-axis
    /// **default**: 5.0
    open var xOffset = CGFloat(5.0)
    
    /// The offset this component has on the x-axis
    /// **default**: 5.0 (or 0.0 on ChartYAxis)
    open var yOffset = CGFloat(5.0)

This is found in ComponentBase, and legend honors it.
Can you try?

@valeIT
Copy link
Author

valeIT commented Feb 28, 2017

It works, thanks. Could have also thought of setting it to centered instead of top. ;)

@valeIT valeIT closed this as completed Feb 28, 2017
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