CakePHP 中用于 OpenFlashChart2 的 FlashChartHelper:空白图表

发布于 2024-08-22 13:25:20 字数 581 浏览 10 评论 0 原文

所以我最近开始使用 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南七夏 2024-08-29 13:25:20

我也许会看一下这个资源:

[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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文