且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在网页中绘制图表的***方式

更新时间:2023-12-06 15:58:10

尝试这个


看起来你想拥有通用图形,而不是那种可视化数学函数的图表,这是对图表一词最常见的理解之一。事实上,这个术语要宽得多,所以你应该解释你究竟需要什么,或者只是提到更多通用术语图形,矢量图形等。



首先,我建议使用HTML5 Canvas功能: http://en.wikipedia.org/wiki/ Canvas_element [ ^ ]。



现在,我认为,对于仅使用服务器和浏览器的情况,这是一种基本方法,没有Java或Flash技术,这是单独的主题。



请看看可以做些什么,这非常令人印象深刻: http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments/ [ ^ ]。



但你可以找到更具体的图表: http://bit.ly/18sK2WR [ ^ ]。



-SA
It looks like you want to have general-purpose graphics, not specifically the kind of charts visualizing mathematical functions, which is one of the most common understanding of the term "chart". In fact, this term is much wider that that, so you should have explained what exactly you need, or just mention more general term "graphics", "vector graphics" or the like.

First of all, I would recommend to use HTML5 Canvas feature: http://en.wikipedia.org/wiki/Canvas_element[^].

These days, I think, this is a base approach for the cases when you use just the server and the browser, without Java or Flash technologies, which are the separate topics.

Please see what one can do, this is pretty impressive: http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments/[^].

But you can find something more specific to diagramming: http://bit.ly/18sK2WR[^].

—SA