谁试试php的flash的chart,高级的chart,免费的,本地的,漂亮的,动态的。

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

谁试试php的flash的chart,高级的chart,免费的,本地的,漂亮的,动态的。

#1

帖子 eexpress » 2008-06-21 23:26

● 鸣学
头像
HuntXu
论坛版主
帖子: 5778
注册时间: 2007-09-29 3:09
送出感谢: 0
接收感谢: 6 次

#2

帖子 HuntXu » 2008-06-22 0:17

谢谢~已收藏...

还能截图进文档哦...对经济数据整理分析再好不过... :D
HUNT Unfortunately No Talent...
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#3

帖子 eexpress » 2008-06-22 0:25

嘿。你搞定了。告诉我怎么最简单的本地产生swf哦。别藏起来啊。 :lol:
● 鸣学
头像
mikewolf
帖子: 41
注册时间: 2008-04-29 19:49
送出感谢: 0
接收感谢: 0

#4

帖子 mikewolf » 2008-06-23 17:59

I have tested, it is a nice widget. I have read the first tutorial and tried it. check out:
http://mikewolf.freehostia.com/ofc/chart.php

but I don't think man could get the "local" swf file.

we read first the quelle text of chart.php in Firefox, the more important sentences:

代码: 全选

<param name="movie" value="open-flash-chart.swf?width=500&height=250&data=http%3A%2F%2Fmikewolf.freehostia.com%2Fofc%2Fdata-2.php" />
and

代码: 全选

<embed src="open-flash-chart.swf?data=http%3A%2F%2Fmikewolf.freehostia.com%2Fofc%2Fdata-2.php" quality="high" bgcolor="#FFFFFF" width="500" height="250" name="chart" align="middle" allowScriptAccess="sameDomain" 
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" id="chart"/>
that means, I think, each time we product only the data quelle (data-2.php) to chart, but energie is the open-flash-chart.swf. this swf file will be open with the parameter. so there will be not "local" swf anymore.

Ofc., we can still setup the outlooks of the charts.
头像
mikewolf
帖子: 41
注册时间: 2008-04-29 19:49
送出感谢: 0
接收感谢: 0

#5

帖子 mikewolf » 2008-06-23 18:38

After some study, I find a solution for your local application maybe.

first we should rewrite the chart.php to chart.html

the two important sentences like these:

代码: 全选

<param name="movie" value="open-flash-chart.swf?width=500&height=250&data=data-2.php" />

<embed src="open-flash-chart.swf?data=data-2.php" quality="high" bgcolor="#FFFFFF" width="500" height="250" name="chart" align="middle" allowScriptAccess="sameDomain" 
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" id="chart"/>
the data2-php will be also rewrite and save like this:

代码: 全选

&title=Spoon+sales+2008,{font-size: 26px;}&
&x_axis_steps=1&
&y_ticks=5,10,6&
&line=3,#87421F&
&values=39,24,32,12,39,17,19,7,9,32,3,28&
&x_labels=Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec&
&y_min=0&
&y_max=60&
save the chart.html and data-2.php under the root of OFC, then open the chart.html with Firefox, you will get the local chart. But you can get it only with the chart.html file, that is still not the swf file. As the last post said, the energie of the chart is a whole swf file, we can't rewrite it.
头像
solcomo
帖子: 2838
注册时间: 2007-04-25 13:12
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 solcomo » 2008-06-23 18:51

的确不错 :D
♜♞♝♛♚♝♞♜
♟♟♟♟♟♟♟♟
♙♙♙♙♙♙♙♙
♖♘♗♕♔♗♘♖

☠☯⚔⚓☣☦☃☕
☹☻☪☭☬⚖⚛⚜
ℜℳℬ™ ℋℯℓ℘ ℳℭ
sƂɐʍ рǀɹoʍ əɥʇ oS
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#7

帖子 eexpress » 2008-06-23 19:59

复杂的。看来等人搞一个前端出来算了。 :lol:
● 鸣学
头像
独孤
帖子: 838
注册时间: 2008-02-02 13:06
来自: 寶能科技
送出感谢: 1 次
接收感谢: 2 次
联系:

#8

帖子 独孤 » 2008-06-24 14:34

数据怎入。复杂。
caizhenhe
帖子: 1
注册时间: 2008-08-02 21:27
送出感谢: 0
接收感谢: 0

#9

帖子 caizhenhe » 2008-08-02 21:28

&title=Spoon+sales+2008,{font-size: 26px;}&
&x_axis_steps=1&
&y_ticks=5,10,6&
&line=3,#87421F&
&values=39,24,32,12,39,17,19,7,9,32,3,28&
&x_labels=Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec&
&y_min=0&
&y_max=60&


how to generate this file? maybe someone confuse on it, yeah,it is really a question.I got a method after serveral trying times. And the method is as follow:
firstly, copying the demo php file:chart-data.php to your root directory.
secondly,create a index.php like this
<?php
include_once './php-ofc-library/open_flash_chart_object.php';
open_flash_chart_object( 500, 250, './chart-data.php', false );

?>
<html>
<head>
</head>
<body>
<?php

echo 'Hello World!';

?>
</body>
</html>
thirdly,browse the index.php on your browser such as IE or FireFox,you will get the chart-object that writed "chart-data.php",selecting it and copy to a new file. you will found you get the data from the new file.
回复

回到 “办公、图像、机械电子设计等”