|
 Gie05tech - 2008-07-13 07:21:47
i still don't know how to get this class works :(
everytime i run the samples script,i just get a download file, and if i print the sample script content i just get a querystring text likes one of the sample below.
&title=3D+Bar+Chart,{font-size:20px; color: #FFFFFF; margin: 5px; background-color: #505050; padding:5px; padding-left: 20px; padding-right: 20px;}&
&x_axis_steps=1&
&x_axis_3d=12&
&y_legend=Open+Flash+Chart,12,#736AFF&
&y_ticks=5,10,5&
&x_labels=January,February,March,April,May,June,July,August,September,October&
&y_min=0&
&y_max=10&
&x_axis_colour=#909090&
&x_grid_colour=#909090&
&y_axis_colour=#909090&
&y_grid_colour=#909090&
&bar_3d=75,#D54C78,2006,10&
&values=3,2,5,3,3,5,2,4,5,3&
&bar_3d_1=75,#3334AD,2007,10&
&values_1=8,9,7,5,8,8,9,9,7,9&
is any dependency files should i include, such as open-flash-chart.swf,ofc library or else?
i have a same problems with QSWFObject class.
 Tom Schaefer - 2008-07-13 08:07:08 - In reply to message 1 from Gie05tech
First, the class does only produce the data.
Second, you have to call it via an FlashObject as described in the example, where QSWFObject is used.
Third, you have to install OFC Lib which is still open source to see something that looks like Flash.
Fourth, you have local problems with php header or mimetypes. For this I can not help.
Fifth, the class works, but not in your environment. Without having any further env info I can not help.
Regards Tom
 Gie05tech - 2008-07-13 10:08:18 - In reply to message 2 from Tom Schaefer
i have download the original open flash chart version 2 alpha 7 (new version) from http://teethgrinder.co.uk/open-flash-chart-2 which was containing js swfobject, open-flash-chart, php-ofc-library folder and open-flash-chart.swf.
then i renamed that source folder to ofc and i put it under my openflash directory, i also put QSWFObject.class under that directory
finally i modified sample_swfobject.php became this :
// includes
include_once("QSWFObject.class.php");
// config
$config = array(
"width"=>$dim["w"],
"height"=>$dim["h"],
"path"=>"ofc/open_flash_chart",
"url"=>"sample_bar3d.php",
"id"=>"o".substr(md5(rand()),0,7),
"bgcolor" => "#ffffff"
);
// swf object
$swfObject = new QSWFObject();
....
then i run it, still doesn't work :(
just for sure, i have run the sample test from the original
open flash chart and it works fine.
am i missing something ?
thanks for your quick reply tom.
 Tom Schaefer - 2008-07-13 11:37:44 - In reply to message 3 from Gie05tech
Have not written for version 2 cause it is alpha and the commands are changed. Just switch to a version 1.x.
 Gie05tech - 2008-07-13 16:36:45 - In reply to message 4 from Tom Schaefer
i have switch it to a version 1.9.7 and it's work.
Many thanks to all of your great 'Q' scripts tom.
|