Sign in to follow this  
richa

Legend color not changing with the changes to the graphs

Recommended Posts

I am trying to change the default colors on the bars of the graph:

 

set1.setColor("8EAC41");

 

set2.setColor("#E19410");

 

 

 

When I run my program I see the graph with these two color series.

 

 

 

But the legend is not changing its colors for these added ones.

 

It remains to the same set which was before adding these colors, the defaul colors which fusion chart was putting in.

 

 

 

I also tried using:

 

 

 

 

 

xml:legend

 

 

 

xml:item color='8EAC41' label='X1'

 

xml:item color='#E19410' label='X2'

 

xml:legend

 

 

 

 

 

sorry Iam not able to post the xml content properly here, so I have used xml: in the front of the tags legend, item.

 

 

 

in the xml but I am not seeing these two colors getting reflected on the legend.

 

 

 

Please suggest.

Edited by Guest

Share this post


Link to post
Share on other sites

Hello Richa,

At first glance, this is what I noticed:

The color code to be given to FusionCharts should be without the # symbol. So change #E19410 to E19410.

Can you please post the entire xml as an attachment?

Can you please specify the technology you are using?

This will help in guiding you further.

Srividya :)

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