halizia Report post Posted September 6, 2007 hello i'd would like to give the data XML by a php string but it doesn't work, if I change this: chart1.setDataXML(< ? echo $strXML? >); into this: chart1.setDataXML("< chart ....>< categories>< /categories>< dataset ....> dataset>< styles>< definition>< /chart>"); it works I don't why the php mode doesn't work. Thanks! code.txt Share this post Link to post Share on other sites
Pallav Report post Posted September 10, 2007 Can you please run the PHP page and then give me just the output HTML? Share this post Link to post Share on other sites
halizia Report post Posted September 11, 2007 i've just seen the problem. it needs a "" between the php variable!! chart1.setDataXML("<? echo $strXML?>"); Thanks a lot!! Share this post Link to post Share on other sites
FusionCharts Support Report post Posted September 11, 2007 You can also use FusionCharts.php library that has a renderChart function that help you easily render a chart in PHP without getting into the javascript part. Share this post Link to post Share on other sites