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

Get chart image without rendering chart #3492

Closed
robert-cronin opened this issue Jun 6, 2018 · 1 comment
Closed

Get chart image without rendering chart #3492

robert-cronin opened this issue Jun 6, 2018 · 1 comment

Comments

@robert-cronin
Copy link
Contributor

I am trying to export a line chart image and save it in the UIImage however I also need to be able to do it without rendering it in any UIView on any View Controller.

But when I do, the image turns out to be just a blank white image. I can get an image if I save the image in viewDidAppear after the view has been loaded.

Is there any way to do this without adding the chart view to the view controller?

@liuxuan30
Copy link
Member

ask on stack overflow, this is an UIView question.

But this library provides

    /// - returns: The bitmap that represents the chart.
    @objc open func getChartImage(transparent: Bool) -> NSUIImage?

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