chrisj

Different colors for 3D Column Chart?

Recommended Posts

We are currently creating a 3D Column Chart with a varying number of datasets. Because this amount is dynamic, we don't want to have to define a color for every dataset. Currently, if we do not specify a color for the datasets, every single column defaults to an orange color. What we would like is for each dataset to have a different color. What color isn't overly important as long as they are different. I noted that the pie charts seem to default to different colors if you don't specify any and am wondering if there is a way to get that functionality with column charts?

Share this post


Link to post
Share on other sites
Pallav (2/13/2007)
You seem to be using FusionCharts v2.3. In FusionCharts v3, we've added automatic color palettes.

 

 

 

It seems that the palette parameter of is not changing the automatic color palette of data plots.

 

 

 

You are talking about automatic color palettes, how do I set the one I want to use ?

 

 

 

Is there a way to create a custom automatic color palette ?

 

Or like the palette only 5 predefined palettes are available ?

Share this post


Link to post
Share on other sites

No - you cannot create your own palettes as of now. If you need to specify color for each plot, use:

<set .... color='Hex Code without #' ..>

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Iam trying to use colour palettes, but it is not chanig the colours of the charts, they all look the same. I'm using these:

 

 

 

MSColumn3D.swf

 

ScrollColumn2D.swf

 

Doughnut2D.swf

 

 

 

with this xml:

 

<chart bgColor='e9f1f8,b2c9d8' showLegend='1' canvasBgColor='f6eed0,fbfaf4' decimals='2' showBorder='0' useRoundEdges='1' palette='3' showValues='0' divLineDecimalPrecision='1' limitsDecimalPrecision='1' PYAxisName='Amount' SYAxisName='Quantity' formatNumberScale='0' numVisiblePlot='20' labelDisplay='Rotate' slantLabels='1'>

....

</chart>

 

 

 

 

 

How can I make this work? I want the charts to have different bar / doughnut colours but rhe background and canvas to be as I've defined.

 

 

 

Thanks,

 

 

 

Giulio

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Thanks for the rpely, I have understood this already from your previous replies. I don't want to have to set different colour, I want to use the new palette featire of v3 but it seems to do nothing, please explain why / how I should use it.

 

 

 

Thanks,

 

 

 

Giulio

Share this post


Link to post
Share on other sites

The different palettes (1-5) are setting attribute to everything excepting colors of dataplots, dataset, series.

 

 

 

If you want to change them you have to do it by hand for each of them.

Share this post


Link to post
Share on other sites

If your are using a XSL ton convert your data from an XML format to the one understood by fusionChart is easy to set your own 'palette'.

 

Do you want an example ?

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