Abdoral Neto Report post Posted April 12, 2011 I would like to implement a interface of charts like this demo: http://www.fusioncharts.com/demos/blueprint/Chart_SalesByEmployee.asp?year=1996 . How can I do that if I use PHP? Share this post Link to post Share on other sites
Guest Angie Report post Posted April 12, 2011 Hi, Welcome to FusionCharts Forum! For more details, please refer to the link below: http://www.fusioncharts.com/docs/?PHP_BasicExample.html http://www.fusioncharts.com/docs/?PHP_Drill.html Hope this helps. Share this post Link to post Share on other sites
Abdoral Neto Report post Posted April 12, 2011 I try to do that. But I can't do. Every time I use renderChart() this erro occurs : Uncaught TypeError: Object [object DOMWindow] has no method 'setAttribute' I can't render chart when I put xlm like a string. Hi, Welcome to FusionCharts Forum! For more details, please refer to the link below: http://www.fusioncha...sicExample.html http://www.fusioncha...?PHP_Drill.html Hope this helps. Share this post Link to post Share on other sites
Abdoral Neto Report post Posted April 12, 2011 (edited) Can I do that with method configureLink(In javascript)? Edited April 12, 2011 by Abdoral Neto Share this post Link to post Share on other sites
Guest Angie Report post Posted April 12, 2011 Hi, Thank for the reply. Please make sure you are using the latest FusionCharts.js. If the problem persists, please send us the code to look into the issue. Awaiting for your reply. Share this post Link to post Share on other sites
Abdoral Neto Report post Posted April 12, 2011 var chart_Pie3D5 = new FusionCharts("glpi/trunk/plugins/charts/lib/fusioncharts/Charts/Column2D.swfPie3D.swf", "Pie3D5", "600", "300", "0", "0", "","noScale","EN"); Uncaught SyntaxError: Unexpected token ILLEGAL chart_Pie3D5.setDataXML("<chart caption='Tarefas mais frequentes' subCaption='Por categoria' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' Units' ><set label'Micro Informatica > teste' value='37' link='newchart-xmlurl-chartsTask.data.php?id=0'/><set label'Outras > Contato com o usuário' value='7' link='newchart-xmlurl-chartsTask.data.php?id=62'/><set label'Micro Informatica' value='7' link='newchart-xmlurl-chartsTask.data.php?id=48'/><set label'Micro Informatica > Manutenção de conta de usuário' value='5' link='newchart-xmlurl-chartsTask.data.php?id=10'/><set label'Automação > Novos projetos' value='3' link='newchart-xmlurl-chartsTask.data.php?id=6'/></chart>"); chart_Pie3D5.render("Pie3D5Div"); chart_Pie3D5.setDataXML("<chart caption='Tarefas mais frequentes' subCaption='Por categoria' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' Units' ><set label'Micro Informatica > teste' value='37' link='newchart-xmlurl-chartsTask.data.php?id=0'/><set label'Outras > Contato com o usuário' value='7' link='newchart-xmlurl-chartsTask.data.php?id=62'/><set label'Micro Informatica' value='7' link='newchart-xmlurl-chartsTask.data.php?id=48'/><set label'Micro Informatica > Manutenção de conta de usuário' value='5' link='newchart-xmlurl-chartsTask.data.php?id=10'/><set label'Automação > Novos projetos' value='3' link='newchart-xmlurl-chartsTask.data.php?id=6'/></chart>"); chart_Pie3D5.render("Pie3D5Div"); Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 12, 2011 Hi, Seems your XML data has new line character. Could you please try once removing the newlines (in PHP) from the XML before you pass it to the chart via renderChart() ? Share this post Link to post Share on other sites