用于 FusionCharts 的 PHP API电力图表
我对使用 FusionCharts PowerCharts 库中的图表感兴趣(演示可在 fusioncharts.com 上找到)。
有一个不错的 PHP 库用于构建标准 FusionCharts,但是查看该类,它当前不支持 PowerCharts 库。有人知道有一个可以与 PowerCharts 版本的库配合使用的库吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Fusion 图表(和 PowerCharts)相对易于使用。您只需向其扔一个 XML 或 JSON 字符串,它就会完成工作。例如,以下是 PowerCharts 网站上支持“拖动列”演示的 XML:
http: //www.fusioncharts.com/charts/visually-editable-charts/
有几种不同的方法可以将数据传输到 FusionCharts,但我在使用它们的过程中发现,有些方法比其他方法有更好的记录和支持。我使用他们基于 Javascript 的图表(由 Highcharts 提供支持,正如 @Brian 提到的那样令人惊叹)并没有取得太大成功,但这可能是因为当我将 HighCharts 部署到我的应用程序中时它们是全新的。在做我的项目时,我没有选择,因为在我开始在这里工作之前,公司已经购买了 Fusion 的许可证,并且对支付其他解决方案不感兴趣。
最后一个警告:制作 HighCharts 的公司总部位于印度。请注意,有时文档和支持论坛使用一些非常规结构的英语。此外,该公司的员工经常在回答支持论坛问题时回答“请参阅文档”,当您遇到困难时,这会令人非常沮丧。
Fusion charts (and PowerCharts) is relatively easy to use. You just throw an XML or JSON string at it and it does the work. For example, here's the XML that powers the "drag column" demo on the PowerCharts website:
http://www.fusioncharts.com/charts/visually-editable-charts/
There are several different methods to get data over to FusionCharts, but I've found in working with them that some are better documented and supported than others. I've not had much success using their Javascript-based charts (which are powered by Highcharts, which as @Brian mentioned are AMAZING) but that could have been because they were brand new when I deployed HighCharts into my application. I didn't have the choice when doing my project as the company had bought a license to Fusion before I started working here and wasn't interested in paying for another solution.
One final caveat: the company that makes HighCharts is India-based. Be aware that sometimes the documentation and support forums use some unconventionally-structure English. Also, employees from the company frequently answer support Forum questions with the response "See the documentation" which is amazingly frustrating when you get stuck.