Sign in to follow this  
saptarshi

Column Color

Recommended Posts

Hello,

 

 

 

You can use the 'color' attribute in the 'set' element to set any color to your individual columns in a column 2D chart as follows:

 

 

 

 

 

 

If you want to define your own colors for the data items on chart, use this attribute to specify color for the data item. This attribute accepts hex color codes without #.

 

 

 

An example of the required XML is given below:

 

 

 

<chart caption='Monthly Revenue' xAxisName='Month' yAxisName='Revenue' numberPrefix='$' showValues='0'>

 

<set label='Jan' value='420000' color='FFF000' />

 

<set label='Feb' value='910000' color='FFF000' />

 

<set label='Mar' value='720000' color='FFF000' />

 

 

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hello,

 

 

 

The outline of all the columns in a chart can be changed globally using the showPlotBorder attribute in the chart element.

 

 

 

<chart ...showPlotBorder='color hex without the #'...>

 

 

 

The color of the fill of each column can be change individually using the color attribute in the set element.

 

 

 

<set label='labelName' value='number' color='color hex without the #'>

 

 

 

Hope this helps. :)

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