所以我最近开始使用 Ubuntu、PHP 和 CakePHP,并且对 LAMP 堆栈非常满意。但现在我正在尝试构建一个简单的网页,可以在图表中显示收集的数据。显然带有 FlashChartHelper 插件的 OpenFlashChart2 非常好,但我无法让它实际显示图表。我得到了 OpenFlashChart2 文档中描述的“hello world”示例,但是当我尝试 FlashChartHelper 示例时,我只是在我的图表应该在的位置出现了一个空白点。没有错误消息,只是……什么都没有。我验证了所有文件都按照页面上列出的方式安装,并且确保在控制器中定义 $helpers
var $helpers = array('Html', 'Form', 'Flash','FlashChart');
会不会是路径问题?我的 webroot 是 /var/www/ ,但我将 cake 解压到 /var/www/www2/ 。我网站的其余部分,包括输入数据,运行得很好。
以前有其他人见过这个吗?您采取了什么措施来解决该问题?如果做不到这一点,你能推荐另一个图形库吗?具体来说,我需要渲染一个散点图。我收集了不定期收集的数据点。有关修复 FlashChartHelper 或其他库的建议将不胜感激
So I have recently started playing with Ubuntu, PHP, and CakePHP and have been pretty happy with the LAMP stack. Except now I'm trying to build a simple web page that can display collected data in a graph. Apparently OpenFlashChart2 with the FlashChartHelper plugin is pretty good, but I cannot get it to actually display a graph. I got the "hello world" sample described in the OpenFlashChart2 documentation to work, but when I try the FlashChartHelper samples I just get a blank spot where my graph is supposed to be. There is no error message, just... nothing. I verified that all the files are installed as listed on the page, and I made sure to define $helpers in my controller
var $helpers = array('Html', 'Form', 'Flash','FlashChart');
Could it be a pathing issue? My webroot is /var/www/, but I unzipped cake into /var/www/www2/ . The rest of my site, including entering data, works just fine.
Has anyone else seen this before? What did you do to resolve the issue? Failing that, can you recommend another graphing library? Specifically, I need to render a scatter graph. I have a collection of data points that are collected at irregular intervals. Either suggestions on fixing FlashChartHelper or another library would be appreciated
发布评论
评论(1)
我也许会看一下这个资源:
[http://www.littlehart.net/atthekeyboard/2006/09/26/tutorial-integrating-phpswf-charts-with-cakephp/][1]
似乎有你需要的一切?
I would perhaps take a look at this resource:
[http://www.littlehart.net/atthekeyboard/2006/09/26/tutorial-integrating-phpswf-charts-with-cakephp/][1]
It seems to have everything you need?