Saving chart/graph made with ChartMaker extension in App Inventor

221 views
Skip to first unread message

Sonia Sanchez

unread,
Mar 8, 2018, 5:51:29 PM3/8/18
to MIT App Inventor Forum
Hello!

I was just wondering if anyone has figured out how to save the charts made with ChartMaker extension in App Inventor? I need to save the graphs I'm getting by reading the produced URL but it doesn't show up when I type the URL into my browser.

TimAI2

unread,
Mar 8, 2018, 7:03:04 PM3/8/18
to MIT App Inventor Forum
That is because the url needs the data being fed by the app to produce the chart.

Could take a screenshot of the chart, then do some image cropping? There are extensions for this here

Sonia Sanchez

unread,
Mar 8, 2018, 10:51:25 PM3/8/18
to MIT App Inventor Forum
Is there anyway to add some lines of code to the extensions Java Script to make it print a png image? I've been looking at the google charts site to get some idea but I' very inexperienced so I am quite lost. https://developers.google.com/chart/interactive/docs/printing


TimAI2

unread,
Mar 9, 2018, 4:13:47 AM3/9/18
to MIT App Inventor Forum
Not possible unless you take the extension source code (which is available) and re-write the extension, and as a beginner this might be a challenge!

Have you tried the screenshot then crop using Taifun's excellent screenshot and image extensions ?

TimAI2

unread,
Mar 9, 2018, 4:22:44 AM3/9/18
to MIT App Inventor Forum
I did some work a while back on creating a printable image from a chart. Google have changed a few things for security that makes their examples more difficult. In my case i created the image then displayed it in a canvas (html5 not Ai2!) this could then be printed or right clicked and saved as an image.

Attached is a self contained html file that does this. Hover top left to display the button.

Should open in any browser....
gvizprintexample.html
Reply all
Reply to author
Forward
0 new messages