Sign in to follow this  
Arindam

Dyanamic Color changes in Legend

Recommended Posts

Hi,

 

 

 

I am using the MSColumn3D chart. It has 4 series for a week. The 1 first and 3 series bar color is constant. But 2, 4th bar color change dynamically depends upon the value.

 

 

 

In that the legend shows the color for 1st & 3rd series is correct. But not in 2nd 4th.

 

 

 

My question.

 

 

 

1. Is it possible to change the legend color dynamically?

 

2. Can we have possible to add the one or more legend manually ?

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Thanks for your reply. If any chance to add the legends in charts more than the series? for an example we used two series in a chart and it shows two legends only is it? if any chance to add the two more legends?

Share this post


Link to post
Share on other sites

Hi,

You have to add <dataset> element for each series. Please follow the structure.

i.e

<chart ...>

  <categories  >

  <category name='cat 1'  />

  <category name='cat 2'  />

  <category name='cat 3'  />

  </categories>

  <dataset  seriesName='S1'  >

  <set value='100' label='Jan' />

  <set .... />

  <set .... />

  </dataset >

  <dataset  seriesName='S2'  >

  <set .... />

  <set .... />

  <set .... />

  </dataset >

  <dataset  seriesName='S3'  >

  <set .... />

  <set .... />

  <set .... />

  </dataset >

  <dataset  seriesName='S4'  >

  <set .... />

  <set .... />

  <set .... />

  </dataset >

</chart>

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