Jamie 1 Report post Posted July 21, 2016 Hello. I've been trying all day to do this. Do you have an example of an Angulargauge, getting it's data in XML, dynamically from a database please? Thanks . Jamie. Share this post Link to post Share on other sites
Akash Biswas Report post Posted August 4, 2016 HI, Thanks for the query. Please visit the link for retrieving data from database to create a chart : http://www.fusioncharts.com/dev/using-with-server-side-languages/php/creating-charts-with-data-from-a-database.html Also refer to the link for loading data in xml : http://www.fusioncharts.com/dev/using-with-server-side-languages/php/different-ways-of-loading-data.html The links being provided for the server-side language - PHP. Please let us know if you want for any other server-side language Hope this helps. Share this post Link to post Share on other sites
Jamie 1 Report post Posted August 25, 2016 Thanks. I have been through those tutorials but it is different for the Angular Gauge. Do you have an example for this please? Share this post Link to post Share on other sites
Prerana Report post Posted August 26, 2016 (edited) Hello, I have tried to implement your requirement,ie. an example of an angulargauge, getting it's data in XML format, dynamically from a database. Please refer the link below for the implementation. http://fc.gagansikri.in/workspace/fc-prerna/Angular-Gauge-XML-DB/index.php https://www.dropbox.com/s/yn06vzrax8griwe/Angular-Gauge-XML-DB.zip?dl=0 Hope this helps. Thanks, Edited August 26, 2016 by Prerana Share this post Link to post Share on other sites
Jamie 1 Report post Posted August 27, 2016 Thank you very much Prerana. That got me going. Can you explain how the colours work please? I can't get any colours across the gauge. I think it's something to do with the $code attribute? Jamie. Share this post Link to post Share on other sites
Prerana Report post Posted August 29, 2016 Hello, Glad to know that it worked. Ya.. It's the value of $code attribute and I am fetching that value from the database. So if you want to customize the color ,simply replace the hex code of the code column in the database table by the color code of your choice. Please refer the screen image of the database table below for the implementation. Please let us know if you have any other query. Hope this helps. Thanks, Share this post Link to post Share on other sites
Jamie 1 Report post Posted September 3, 2016 Thanks again Prerana. Could you simplify this to have the colour range within the php page, not from the database please? I'm trying to convert from the old flash version of FC. Thanks. Jamie. Share this post Link to post Share on other sites
Prerana Report post Posted September 5, 2016 Hello, Thanks for replying back. I have tried to structure the sample according to your requirement. Please replace the hex code in $colorCode array with the color code of your choice. Kindly refer the links below for the implementation. http://fc.gagansikri.in/workspace/fc-prerna/Angular-Gauge-XML-DB/index.php https://www.dropbox.com/s/d91iujm1qwmtjvl/Angular-Gauge-XML.zip?dl=0 Hope this helps. Thanks, Hope this helps. Thanks, Share this post Link to post Share on other sites
1aman11 Report post Posted October 7, 2016 Hi, I tried using the Dropbox version made available above by Prerana. However, when in my script I replace the scripts url from online as provided in the dropbox version, with the one i have the license for, widget is not rendered. I have fusionchart.js and fusionchart.hc.widgets.js file from version 3.3 with the license. The one used in the above provided Dropbox code is from version 3.11. Is this a reason why widget is not rendered for me? Also is there a difference between fusionchart.widgets.js and fusionchart.hc.widget.js ? Thanks, Aman Share this post Link to post Share on other sites
Prerana Report post Posted October 12, 2016 (edited) Hello Aman, The fusioncharts.widget.js and fusioncharts.hc.widget.js are not same. fusioncharts.hc.widget.js has been used for the earlier version. You can download latest version using this link:http://www.fusioncharts.com/download/ Also you can visit the link below for the sample using php with the earlier version. http://docs.fusioncharts.com/charts/?guide-for-web-developers/php/PHP_DB.html Hope this helps, Thanks, Prerana Singh Edited October 12, 2016 by Prerana Share this post Link to post Share on other sites