Google图表图片替换 [英] Google Chart Images Replacement

查看:289
本文介绍了Google图表图片替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

解决方案

Following this announcement, we made a drop-in-replacement for Google Image Charts

这篇关于Google图表图片替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆