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

The chart above and the chart below how to align #1276

Closed
monkeyRing opened this issue Jul 29, 2016 · 3 comments
Closed

The chart above and the chart below how to align #1276

monkeyRing opened this issue Jul 29, 2016 · 3 comments

Comments

@monkeyRing
Copy link

screenshot

@monkeyRing
Copy link
Author

I previously wrote , found no effect


 func setOffSet() {
        let lineOffsetLeft = combinaedChartView.viewPortHandler.offsetLeft
        let barOffsetLeft = barChartView.viewPortHandler.offsetLeft

        if barOffsetLeft < lineOffsetLeft {
            barChartView.extraLeftOffset = lineOffsetLeft - barOffsetLeft
        }else {
            combinaedChartView.extraLeftOffset = barOffsetLeft - lineOffsetLeft
        }
    }

@Tj3n
Copy link

Tj3n commented Jul 29, 2016

I think there's a method to define lineChartView.leftAxis.maxWidth to set that, if not then reduce the font size till it's same i suppose

@danielgindi
Copy link
Collaborator

@Tj3n is correct. Use minWidth and maxWidth together to have a constant axis width to match the two.

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

3 participants