Just want to know if MPAndroidChart supports export as image option while viewing the graphs.
Asked
Active
Viewed 587 times
1 Answers
1
I guess there is no default method in library to convert chart into image . There is an open issue on library github https://github.com/PhilJay/MPAndroidChart/issues/3066 .
You can try the answer suggested in the comment below .
One thing you can do is to create a bitmap, pass it to a canvas object and call the draw method of your chart view passing this canvas object you created. Then you can save the bitmap into a JPEG or PNG file. This actually works with saving any View as an image. For more details check this link

Manohar
- 22,116
- 9
- 108
- 144