Re: Speedometer Chart Control
Phil/Steve:
What ended up being the issue with FusionCharts not rendering once published. I'm running into the same issue. It all works on the development computer in live preview but I cannot get it to work on the server. To test out the basic installation of FusionCharts on the server, I've uploaded the FusionCharts sample chart with all static data and running in a plain jane html page. I have the sample chart html page saved in the A5webroot folder and it runs/displays just fine in a browser on the server. I'm running the code below in a Free-Form Container and using 2 session variables for the dynamic data.
Steve:
Thank you for your response earlier Steve.
Here's the code I'm using:
Phil/Steve:
What ended up being the issue with FusionCharts not rendering once published. I'm running into the same issue. It all works on the development computer in live preview but I cannot get it to work on the server. To test out the basic installation of FusionCharts on the server, I've uploaded the FusionCharts sample chart with all static data and running in a plain jane html page. I have the sample chart html page saved in the A5webroot folder and it runs/displays just fine in a browser on the server. I'm running the code below in a Free-Form Container and using 2 session variables for the dynamic data.
Steve:
Thank you for your response earlier Steve.
Here's the code I'm using:
Code:
<html> <head> <title>Punch Chart Priority 1</title> <script type="text/javascript" src="fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready(function(){ var fusioncharts = new FusionCharts({ type: 'doughnut2d', renderAt: 'chart-container', width: '250', height: '270', dataFormat: 'json', dataSource: { "chart": { "caption": "Priority 1", "exportEnabled": "1", "captionAlignment":"left", "pieRadius": "80", "doughnutRadius": "50", "paletteColors": "#00FF00,#CD3333", "showBorder": "0", "use3DLighting": "0", "enableSmartLabels": "0", "startingAngle": "360", "showLabels": "0", "labelDistance": "-20", "labelFontSize": "16", "labelFontBold": "1", "showValues": "1", "showPercentValues": "0", "showLegend": "1", "defaultCenterLabel": <%A5 ?session.a_PP1Total %>, "centerLabel": "Status- $label: $value", "centerLabelBold": "1", "showTooltip": "0", "decimals": "0", "useDataPlotColorForLabels": "0", "theme": "fint" }, "data": [ <%A5 ?session.a_PP1Data %> ] } } ); fusioncharts.render(); }); </script> </head> <body> <div id="chart-container">Punch Priority 1 Chart</div> </body> </html>
Comment