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

If data is not set (e.g. public var noDataText = "No chart data available.") #756

Closed
sabiland opened this issue Feb 16, 2016 · 2 comments
Closed

Comments

@sabiland
Copy link

If data is not set (e.g. public var noDataText = "No chart data available."), graph is not re-drawn after rotating device. That means "No chart data available." text is stretched /squeezed.

@liuxuan30
Copy link
Member

in controller code, use following (though deprecated in iOS 8.0)

-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    [_chartView setNeedsDisplay];
}

will redraw the chart can solve the issue.
ChartDemo does not provide this support yet.

@danielgindi
Copy link
Collaborator

Does this mean that the UIView does not setNeedsDisplay when changing frame? Looks like a given that the OS should do that

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