The Google Chart Images API is currently deprecated and scheduled for retirement on 20th April 2015.
Is there any other free service that can replace it and allow generating chart images just by providing parameters in the URL?
Here's an example for a URL used to generate a PNG image, it can be used as an HTML img source and is useful especially in e-mails:
http://chart.apis.google.com/chart?chxl=1:|Apr+04|Apr+05|Apr+06|Apr+07|Apr+08|Apr+09&chxp=1,0,20,40,60,80,100&chxr=0,0,45&chxs=1,676767,11.5,0,lt,676767&chxt=y,x&chs=550x198&cht=ls&chco=3366CC,FF9900&chds=0,45,0,45&chd=t:7,12,11,9,13,7|11,26,45,24,22,27&chdl=Visits++++|Page+Views&chdlp=t&&chdls=333333,16&chg=100,20,0,0&chls=4|2
This will produce the following image that can be added easily via an <img>
tag and is supported across all browser and email clients.
While the dynamic and interactive Google Charts are actively maintained, we officially deprecated the static Google Image Charts way back in 2012. This gives us the right to turn it off without notice, which may happen soon.
Use noData() method to enable "No data" label: chart. noData().
Double-click the chart you want to change. At the right, click Setup. Select the cells you want to include in your chart. Optional: To add more data to the chart, click Add another range.
Following this announcement, we made a drop-in-replacement for Google Image Charts 👍 and added gif animation on top of it 🚀(chart animations in emails are awesome!!).
It's called Image-charts. No more server-side chart rendering pain, no scaling issues, it's blazing fast, 1 URL = 1 image chart.
... and QR Code as well:
https://image-charts.com/chart? &chs=150x150 &cht=qr &chl=Hello world &choe=UTF-8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With