Jamie 1

Gauge with XML

Recommended Posts

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

HI,

 

Thanks for the query.


Please visit the link for retrieving data from database to create a chart : 
Also refer to the link for loading data in xml : 

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

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.
 
Hope this helps.
Thanks,
Edited by Prerana

Share this post


Link to post
Share on other sites

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

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,

 

post-70399-0-33255000-1472448810_thumb.png

Share this post


Link to post
Share on other sites

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

Hello,


 


Thanks for replying back.


 


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

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
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.


 

Hope this helps,


Thanks,

Prerana Singh

Edited by Prerana

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now