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 export chart to PDF programmatically without clicking the chart menu button #352

Closed
ArunVicky001 opened this issue Dec 14, 2020 · 11 comments
Labels

Comments

@ArunVicky001
Copy link

ArunVicky001 commented Dec 14, 2020

Hi Team,

I have a requirement to export the chart to PDF programmatically and share without hitting the button, is it possible in this library?

@ihnatmoisieiev
Copy link
Contributor

Hello @ArunVicky001,

it's possible. Just call exportToPDF method from your HIChartView.

@ArunVicky001
Copy link
Author

Thanks for your response, I see it's a void method I am sure how to read this value and assign and share. could you please elaborate your answer?

@ihnatmoisieiev
Copy link
Contributor

@ArunVicky001 just call this method when you need:

chartView.exportToPDF()

It opens a bottom sheet to share chart in PDF format:

Screenshot 2020-12-16 at 19 37 58

@ihnatmoisieiev
Copy link
Contributor

@ArunVicky001 can I close the issue?

@ArunVicky001
Copy link
Author

ArunVicky001 commented Dec 22, 2020

@ihnatmoisieiev Thanks for your response!
I have one more question related to this topic, Is it possible to set the chartView.exportToPNG() image to UIImageView?

@ihnatmoisieiev
Copy link
Contributor

@ArunVicky001 it's not possible, because the exportToPNG() method will open a bottom sheet to share chart in PNG format.

@ArunVicky001
Copy link
Author

@ihnatmoisieiev is there is any possibility to share the PDF or PNG image other than these two methods?

@ihnatmoisieiev
Copy link
Contributor

@ArunVicky001 there are no other possibilities.

@ArunVicky001
Copy link
Author

@ihnatmoisieiev okay thank you, but in a later version please integrate this feature.

@ihnatmoisieiev
Copy link
Contributor

@ArunVicky001 which feature do you mean? Please describe in details.

@ihnatmoisieiev
Copy link
Contributor

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants