问题标签 [xml-swf-charts]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1411 浏览

php - XML/SWF 图表的 PHP 包装器

任何人都知道是否有用于 XML/SWF 图表的最新版本 (5.X) 的 PHP 包装器

0 投票
1 回答
337 浏览

php - 缺少日期的 PHP Flash 图表 API?

我有一些余额 ($)、日期和备忘录的数据。我想将其绘制为折线图。我很高兴与http://www.maani.us/xml_charts/一起策划,直到我意识到我的 x 轴已关闭:每天都没有余额,有时一天会有多个余额。我该如何弥补这一点(适当地隔开日期)?我尝试使用 unix_timestamps 作为日期,以便它可以有一个数值,但这仅适用于散点图(而且它很烂)。我想显示为工具提示的备忘录。

是否有任何其他库/API 可以处理这个问题?Fusion Charts 能做到吗?基本上我需要一个图表 API,它可以处理 X 和 Y 轴的数值,但允许我重命名 X 轴,这样它实际上不会显示为数字,并且支持工具提示(即基于 Flash)。

0 投票
1 回答
1042 浏览

javascript - XML/SWF charts example not working with cherryPy

I am trying to use use the XML/SWF Charts library with cherrypy. I want to generate html reports with nice looking charts.

I am trying to expose one of the default examples of XML/SWF charts with cherryPy, but for some reason the javascript is not working properly with cherryPy.

I created the following python script:

I have the following directory structure:

p>

I put the javascript file and all files needed by the library in the .\data\scripts folder. (I also tried to put these files in the root folder but that didn't work either)

the sample html file looks as follows:

p>

When I double click the sample file it works fine but when I run the python script and browse to the local host address on port 8080 then a popup keeps occuring which shows the following message:

"This page requires AC_RunActiveContent.js"

I think I did something wrong in my python script but I am not able to find out what I did wrong. Why is the javascript not working in cherryPy while it does work in the sample.html file? Did I forget something?

0 投票
1 回答
4437 浏览

javascript - 在 Yii 中使用 JavaScript(XWF/SWF 图表)

我正在尝试使用 Yii 加载 XML/SWF 图表并且遇到了一些麻烦。据我所知,问题似乎在于 Yii 在标题中加载脚本标签的顺序。

这就是我的工作 test.php 脚本(减去 Yii)生成的标头中生成的源代码的样子。

现在我试图让 Yii 使用这段代码完成同样的事情。

p>

这就是我得到的

p>

问题似乎是加载 AC_RunActiveContent.js 的行的位置。当我将它移到我的测试脚本中的其他变量之上时,它会破坏测试脚本。有什么办法可以强制 Yii 按照我想要的顺序编写命令?

2010 年 8 月 23 日更新-已解决!!!

在 Gray Teardrop 的建议下,我得以完成这项工作。鉴于我已经为此苦苦挣扎了好几天,我想我会为其他人发布完整的解决方案。

首先,我安装了 XML/SWF 图表protected/vendors/Maani

show.php(包含图表的视图)

p>

src注意和的相对路径信息FlashVars是必需的。

0 投票
1 回答
6377 浏览

ssl - 切换到 SSL 后,SWF 未在 ie8 中加载

我们最近应一个非常大的客户端的请求将我们的 web 应用程序切换为使用 SSL。我们遵守了,一切都很顺利,直到我的 IE 用户开始通过电子邮件发送关于看不到我们的 Flash 图表的支持(XML/SWF 图表:www.maani.us/xml_charts/)

在 IE8 中它提示正在传递不安全的内容,我们通过将嵌入代码中的 flash 插件链接更改为调用 https 来解决此问题,但 swf 的左上角只有红色 X。

直接浏览 swf 具有相同的效果。Red X 就像内容不存在一样。

我已将 ie8 的 flash 更新为 10.0.45.2

FF、Chrome 和 Safari 运行良好。IE7 将加载 swf,但不会加载 xml 来为图形供电。这些图表已经运行了两年多,直到我们在周末完成 SSL/https 切换。

嵌入代码在这里:https ://gist.github.com/f425b370de390764bd75截图链接在要点的顶部。

0 投票
5 回答
5922 浏览

php - 如何从 PHP 中的图片创建动态视频/幻灯片

我有一个动态存档(我的 ftp 空间上的一个文件夹),其中从网络摄像头加载图像。现在,我想在每次用户想要观看时使用这些图像创建一个简单的幻灯片或视频。没有任何过渡选项或其他......我需要从相机拍摄的图像中构建一个简单的延时摄影。

我刚刚尝试了这个http://www.maani.us/xml_slideshow/它工作正常(我可以用 php 为 swf 脚本构建一个动态 xml 配置文件)但我不能将时间转换设置为小于 1 秒...而且不是免费的...

有什么简单的解决办法吗?(如果更好的话,也可以使用javascript...)谢谢!