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

How to make the chart and the other chart with the same translation #799

Closed
z404558 opened this issue Mar 4, 2016 · 2 comments
Closed

Comments

@z404558
Copy link

z404558 commented Mar 4, 2016

I have a CandleStickChart and a BarChart below it. When I make CandleStickChart zoom in or out , I want BarChart translation.
Do you have a solution about this?

@z404558
Copy link
Author

z404558 commented Mar 4, 2016

  • (void)chartTranslated:(ChartViewBase * __nonnull)chartView dX:(CGFloat)dX dY:(CGFloat)dY
    {
    // please code in here
    }

@liuxuan30
Copy link
Member

take a look at ChartTransformer and ChartViewPortHandler's methods. There are some playing with the matrix, like

    public func refresh(newMatrix newMatrix: CGAffineTransform, chart: ChartViewBase, invalidate: Bool) -> CGAffineTransform

There are some guys asked about this quesiton already.

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