Sign in to follow this  
nemoestudio

Change Colors: Fusioncharts Free

Recommended Posts

Hello Everyone, I'm using this code to generate a PHP array:

 

   		# Add chart data along with category names 
               	$FC->addChartData("462","label=Jan");
               	$FC->addChartData("857","label=Feb");
               	$FC->addChartData("671","label=Mar");
               	$FC->addChartData("494","label=Apr");
               	$FC->addChartData("761","label=May");
               	$FC->addChartData("960","label=Jun");

 

How can I send the "color" parameter to the SWF graph? I used something like this

 

   		# Add chart data along with category names 
               	$FC->addChartData("462","label=Jan", "color=#003399");
               	$FC->addChartData("857","label=Feb", "color=003399");

 

But instead of the graphic I get the message "no data to display",

 

do I have to add something to this line?

 

# Store chart attributes in a variable
 $strParam="caption=Resumen Herramienta de AutoAssesment;xAxisName=Categoria;yAxisName=Porcentaje de Cumplimiento;decimalPrecision=0; formatNumberScale=0;numberSuffix=%;";

 

any ideas? thanks in advance!

Edited by nemoestudio

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

Thanks for sharing your view.

 

We are glad that your is resolved.

 

Keep smiling and keep FusionCharting. :)

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