如何根据数据库中的数据生成图表? 例如,我想在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.
更多推荐
发布评论