Sign in to follow this  
aman0711

How to use a solid colors in Column 2d chart

Recommended Posts

Hi Experts,

 

 

 

I want to use a solid color for the bars in Column 2D chart instead of the default color palettes (color fading towards the bottom).

 

 

 

is it possible to do so?

 

 

 

another question, Can I get rid of vertical and horizontal division lines in the background of chart?

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello Aman,

 

 

 

If you wish to use solid fills for the column (or area), you have to use the plotGradientColor attribute without any color defined for it.

 

 

 

For example: <chart.... plotGradientColor=''.....>

 

 

 

Also, to remove the vertical and horizontal division lines in the background of chart, could you set the divLineAlpha='0' and try again?

 

 

 

I hope this helps. :)

Share this post


Link to post
Share on other sites
I think I've the same problem, but not on individual columns but I want every column to have the same color. How do I fix that?

This is the code I tried to use, whatever I do with plotGradientColor I got different colors on all the columns

 

<

ChartTemplate flashName="Column2D" animation='0' baseFont="Arial" baseFontSize='10'

plotGradientColor=''

outCnvBaseFont='Arial' outCnvBaseFontSize='10' showAlternateHGridColor="1"

dropShadows='0' shadowXShift='0' shadowYShift='0' setAdaptiveYMin='1'

formatNumber='0' formatNumberScale='0' forceDecimals='0' showValues='0'

canvasBorderThickness='0' chartLeftMargin='4' chartRightMargin='4'

adjustDiv='0' bgColor='ffffff' canvasBorderColor='cccccc' legendShadow='0'

legendBorderColor='ffffff' borderColor='aaaaaa' imageSave='1' imageSaveURL='../../FusionChartsSave.aspx?imageName=Column2D'

labelDisplay='Rotate' slantLabels='1' paletteColors='FF5904'>

<category font='Arial' fontSize='9' fontColor='000000' displaySerieValue='true'/>

<

dataset type="column" color="ff0000" parentYAxis="P" showValues='0' lineThickness='1' showAnchors='false' labelPeriodicy='1' plotGradientColor=''/>

</

ChartTemplate>

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Welcome to FusionCharts Forum. :P

To impart the same color on each column please use the color attribute in each of the <set> elements. You do not need to use the plotGradientColor option here.

See code below:

<chart >

<set value='3' color='FF33FF' />

<set value='5' color='FF33FF' />

<set value='9' color='FF33FF' />

<set value='7' color='FF33FF' />

</chart>

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi

 

I'm new to Fusioncharts, but I populate the chart from the dB and do now how many fileds I will receive. I just want to set a common color on all the columns and don't get the default random colors I get now, how can I get that?

Thanks in advance

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Could you please try passing the single color to paletteColors attribute in <chart> element?

 

 

 

If you do not want the gradient please use plotGradientColor=''.

 

 

 

e.g.

 

 

 

<chart plotGradientColor='' paletteColors='ff0000' >

Share this post


Link to post
Share on other sites

So question: if I'm trying to disable gradients in chart by using plotGradientColor='', but I'm wanting to pass that in the SetChartParams method, it doesn't work (because we're not supposed to use single or double quotes in the parameter).

 

 

 

So now what?

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Please note that you cannot use "plotGradientColor=''" in the SetChartParams method.

You need to set in the XML codes only.

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