如何使用MySQL数据生成动态图表? [英] How can I generate dynamic charts with MySQL data?
问题描述
这不是关于图形库的名称的问题。
This is not a question about the names of libraries for making graphs.
我有一个项目需要一个方法来创建来自MySQL的数据的图形。
I have a project that needed a way to make graphs with data that comes from MySQL.
我的问题是:提供外部数据的良好集成和灵活性的库,在这种情况下是MySQL数据?
My question is: A library that provide a good integration and flexibility with external data, in this case MySQL data?
我需要计算平均值,创建饼图,实时更改数据等。
I need to calculate averages, make pie charts, change the data in real time, etc.
我想要一个库在最终图形中不使用JPEG图像。我想要像
http://raphaeljs.com/analytics.html (任何人都知道如果有这个库的MySQL集成?)。
I would prefer a library that doesn't use JPEG images in final graphs. I would like something like http://raphaeljs.com/analytics.html (anyone know if there's MySQL integration for this library?).
我看到了Google Charts API,但我不喜欢在我的服务器上没有库控制的想法,阅读它的限制。
I saw the Google Charts API but I don't like the idea of not having library control on my server, and I read that it has limitations.
推荐答案
我会让jquery或dojo渲染图形中的数据,请查看这些链接。
I would let jquery or dojo render the data in a graph therefore saving computing power on the server take a look at these links
http:// dojotoolkit。 org / grids-charts
http://www.1stwebdesigner.com/css/top-jquery-chart-libraries-interactive-charts/
这篇关于如何使用MySQL数据生成动态图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!