Ayan Pal
-
Content count
106 -
Joined
-
Last visited
Posts posted by Ayan Pal
-
-
hi rtibmx,
please use attached FusionCharts_Gen.php page.
part of the sample code may like below
$FC->renderChart(false,false,'myDIVtoPutChartIn');
where myDIVtoPutChartIn is the given div id
@crunkmasterB: Hope this help you too.
-
hi lmhart
your code is right but please check that the paths are written in the code are right or not..
e.g.
include("../class/FusionCharts_Gen.php");
means one directory back from your php page's directory then 'class' folder which contain FusionCharts_Gen.php file. make it sure that the path is right...
check this for all.....
include("../class/FusionCharts_Gen.php");
include("../class/DBConn.php");
$FC->setSwfPath("../FusionCharts/FCF_Pie2D.swf");
-
Hi rafal
please use the attached FusionCharts_Gen.php file instead of your old one
thanks
-
hi.
please update your code a little bit.....
write
myChart.setDataURL("realyer.php?XML=www.anotherdomain.com/myXML.xml");
**omit the http:// in the chart dataURL
update relayar.php page alse as follows
<?php
$xmlDoc = new DOMDocument();
$xmlDoc->load('http://'.$_GET["XML"]);
header('Content-type: text/xml');
echo $xmlDoc->saveXML();
?>
fusionchatrs block urls containing ':' that's why it's blocking the the url supplyed in the dataURL
-
hi,
FC_Rendered() function is called when the chart is rendered.but if you set animation=1 then animation takes some times after the chart has rendered. As you called the export function after the chart is rendered so its export the chart before the chart's animation is completed. to solv this you can use a time delay by using setTimeout().
the code may be as follows-
function CheckRender(DomID) {
//If this Properties are True that means the Chart Became Updated
if(chartObjects[DomID] && chartObjects[DomID].hasRendered && chartObjects[DomID].hasRendered()){
window.clearInterval(intervlId[DomID]);
//exporting the chart
var t=setTimeout("chartObjects[DomID].exportChart({exportFileName: '/files/'+JPGfile[(DomID.charAt((DomID.length)-1))-1] }); // ( { exportAtClient: '1'} )",500)
}
**adjust the time(500) in ms as per you needed
How to render a chart in specific DIV with PHP class?
in FusionCharts and PHP
Posted · Report reply
opps...!
here is the missing attachment
FusionCharts_Gen.php.zip