princej88

Different Color Bars In The Same Series

Recommended Posts

Hi,

 

I am using the multi series bar 3d graph. I only have one series and I was wondering how I could pick a different color for each bar in the series. Is this possible?

I would rather not have to switch to a non 3d bar graph because these do look the best.

 

Thanks ahead of time for the help,

Prince

Share this post


Link to post
Share on other sites

Hi,

 

For this you can set color attribute for each <set> element in your XML.

 

For example:

 

<chart>

  <categories>
     <category label='Jan' />
     <category label='Feb' />
     <category label='Mar' />
  </categories>

  <dataset>
     <set value='27400' color='FF0000' />
     <set value='29800' color='00FF00' />
     <set value='25800' color='0000FF' />
  </dataset>

</chart> 

Share this post


Link to post
Share on other sites

Thanks for the prompt reply. I will give this a shot.

Hi,

 

For this you can set color attribute for each <set> element in your XML.

 

For example:

 

<chart>

  <categories>
     <category label='Jan' />
     <category label='Feb' />
     <category label='Mar' />
  </categories>

  <dataset>
     <set value='27400' color='FF0000' />
     <set value='29800' color='00FF00' />
     <set value='25800' color='0000FF' />
  </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