Search the Community

Showing results for tags 'setXMLdata'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company Forums
    • Company News
  • Product Forums
    • FusionCharts XT
    • FusionWidgets XT
    • PowerCharts XT
    • FusionMaps XT
    • Collabion Charts for SharePoint
    • jQuery Plugin for FusionCharts
    • AngularJS plugin
    • ReactJS plugin
  • General Forums
    • FusionCharts Jobs and Consultation
    • FusionLounge

Found 1 result

  1. In the following the XMLdata is sent as a http GET from a webviewer in filemaker pro advanced 15. It is decoded by a php server script and returns the chart. However, whenever I try to pass any color params so that each segment of say a pie chart of stacked column can have the colour I select, the chart won't draw. If I remove the color attribute, it draws immediately. Here's the xml data being sent that works - note that it accepts color in the last segment only: "<set label=\"fruit\" value=\""& try::fruit&"\" /> <set label=\"grains\" value=\""& try::grains&"\" /> <set label=\"dairy\" value=\""& try::dairy&"\" /> <set label=\"veges\" value=\""& try::veges&"\" /> <set label=\"protein\" value=\""& try::protein&"\" /> <set label=\"goodXtra\" value=\""& try::goodXtra&"\"/> <set label=\"badXtra\" value=\""& try::badXtra&"\" color=\"ff4c3b\" issliced=\"1\"/>" If this is sent, it fails: "<set label=\"fruit\" value=\""& try::fruit&"\" /> ... <set label=\"goodXtra\" value=\""& try::goodXtra&"\" color=\"5de07d\"/> <set label=\"badXtra\" value=\""& try::badXtra&"\" color=\"ff4c3b\" issliced=\"1\"/>" Can't see what the solution might be - certainly can't use the standard colours. BTW, setting the colorpalette to the colours I want also doesn't work. Here's the php code: <html> <head> <title>tryPie after v3</title> <?php include 'includes/fusioncharts.php' ?> <script type="text/javascript" src="js/fusioncharts.js"></script> <script type="text/javascript" src="js/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready(function(){ var pData= <?php echo $_GET["data"] ?>; var allServesChart = new FusionCharts({ 'type': 'pie3d', 'renderAt': 'allServes-container', 'width': '400', 'height': '320', 'dataFormat': 'xml', 'dataSource': '<chart></chart>' }); allServesChart.render(); allServesChart.setXMLData(pData); }); </script> </head> <body> <div> <div id="allServes-container">A pie chart should load here!</div> </div> </body> </html>