发现假如用js SVG的库(
http://keith-wood.name/svg.html),IE不装补丁的话不支持,一直到IE8也不支持。用YUI Charts(
http://developer.yahoo.com/yui/charts/)之类的,似乎得依靠Flash。有比较好的办法能简单支持各种浏览器吗?
刚发现这篇文章
http://softwareas.com/ajaxjavascript-8-ways-to-create-graphics-on-the-fly
似乎用方法3可以解决:
Load dynamic images from the server. Once you have an image tag (either in the initial HTML or created on the fly with document.createElement("img"), you can set its source to any URL, even external to your domain (though cross-domain "hot-linking" should generally be done only with permission). This is standard DHTML/Ajax stuff and works with any browser.
不过不太熟悉这种方法,不知道那位能详细点讲讲,或者告诉下哪里有这种code可以看看?
--
修改:loy FROM 208.181.115.*
FROM 208.181.115.*