Sign in to follow this  
CGLegacy

Displaying newly calculated data (not from database) on FusionCharts???

Recommended Posts

hi...

 

i successfully used fusioncharts to generate data from my table in MySQL....

 

 

 

now i wish to do the same to one of my php pages... which can calculate which item/drug is A class, B class and C class (based on demand and sales, A are the highest demand drugs)....

 

however i dont save the result in my database... its just for viewing purposes...

 

 

 

so what i want to do is... to generate a chart based on this table, for example drug name and what is the percentage of demand.... i attached a printscreen of my table below...

 

 

 

abcibh.jpg

 

 

 

thanks in advance...

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello,

Welcome to the FusionCharts Forum. :)

I have attached a sample XML based on your requirements. The recommened charts to apply this XML to are the line chart and pie chart. Please check and comment whether this suits your requirements?

To incorporate this in PHP, could you please go over the following links:

http://www.fusioncharts.com/docs/Contents/PHP_BasicExample.html

http://www.fusioncharts.com/docs/Contents/PHP_Array.html

http://www.fusioncharts.com/docs/Contents/PHP_Form.html

 

I hope this helps. :D

DrugNamePercentage.txt

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
Sign in to follow this