Sign in to follow this  
Nishi

Set different colors according to legends

Recommended Posts

Can any one help me out for setting different colors according to legends??For example if the legend color is Blue the value inside it should be white in color....And if the legend color is pink the value inside should be black in color for readability...Now i have set the color of legends at dataset tag level...And i tried to set the color of value at set tag level ...But the bars are also colored...I need only the values to change the color....

 

 

 

 

 

 

 

Thnx in advance

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Nishi,

I am afraid, as of now, FusionCharts does not support this.

However, could you please try applying "Styles" on the "font" attribute on "LEGEND" object.

Ref.- <styles>

<definition>

<style name='myLegendFont' type='font' size='11' color='639ACE' bold='1' />

</definition>

<application>

<apply toObject='Legend' styles='myLegendFont' />

</application>

</styles>

Please note, in this case the color of the font will get applied to all the fonts of the Legend.

Ref.- http://www.fusioncharts.com/docs?/AttDesc/Legend.html

I hope this helps. :)

Share this post


Link to post
Share on other sites

Hi..

 

I hav tried as u said....But u hav gave me example for legend values....I need for datavalues which displays inside bars....And i hav tried using syles by changing the above code by

 

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Nishi,

As you have stated, in case you wish to customize the appearence of the data values, please try applying "Styles" on the "datavalues" object.

I hope this helps. :)

Share this post


Link to post
Share on other sites

Hi,

 

 

 

No I hav tried using Data values...Stil the color is applied to all the data values....I hav given the color dynamically according to the legends.....But the funny thing is dat in the view selection source its showing the colrs dynamically but while displaying all the datavalues are in white color....

 

 

 

I m pasting sample code with one legend here....Actually i am having 3 legends....Can u check whether this is right...

 

 

 


/>



IFCode

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Nishi,

Could you please send us the screen-shot of the same as an attachment?

Awaiting your reply.

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