从MySQL数据生成动态图(Generate dynamic graph from MySQL data)

编程入门 行业动态 更新时间:2024-10-25 23:28:22
从MySQL数据生成动态图(Generate dynamic graph from MySQL data)

如何根据数据库中的数据生成图表? 例如,我想在90天的范围内显示网站的流量,图表会显示此信息,就像线图一样。 我不喜欢PHP图像和GD功能,它们实际上是像素化的,实际上PHP页面就像图像一样。 我不确定这是否是我在其他网站上看到的,但我想要一个流畅的图像。

How can I generate a graph based on data inside my database? For example, I want to display the traffic of a website between a 90 day span, and a graph will display this, like a line graph. I don't like the PHP image and GD functions, they are really pixelated and are actually PHP pages acting like images. I'm not sure if this is how I've seen it done on other websites, but I would like a smooth image.

最满意答案

一个很棒的问题我所做的一个很棒的解决方案是使用: http : //code.google.com/apis/chart/ Google Chart有很多很棒的图表等等你可以使用。 我做的是查看示例,看看数据是如何格式化的,然后我写了我的查询来匹配它。

Great question one awesome solution that i have done is to use: http://code.google.com/apis/chart/ The Google Chart has lots of great graphs etc.. you can use. What i did was look at the examples see how the data was formatted, then I wrote my query to match it.

更多推荐

本文发布于:2023-07-29 15:51:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1317606.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   动态图   MySQL   Generate   data

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!