Sign in to follow this  
blonde

How Can I Change Colors Of Database Driven Charts?

Recommended Posts

I'm a newbie here and I use FusionCharts V3 for an ongoing project. I am very happy with the engine but I still have an important, perhaps a stupid question. I only use database driven charts an now i want to change the colors of the chart elements/datasets like bar, column, line whatever. No problem with a simple hard-coded xml structure but how can I achieve this in a DB chart? Can i change without coding or do i create a new xml-structure after the database query.

 

For your help I would be very grateful !

 

best regards

 

Tom

Share this post


Link to post
Share on other sites

Hi,

 

thank your for your fast answer but i know this kind of style. My problem ist, i don´t know how i can design the colors of series datsets like this:

 

<dataset seriesName='2010' color='000080'>

<set value='6.14' />

<set value='3.98'/>

<set value='4.94' />

<set value='13.36' />

<set value='16.02' />

<set value='25.49' />

<set value='30.06' />

</dataset>

 

But i don´t have a structure like this. Here is my header but i think, it is not the way to design different seriesNames.

 

<chart legendPostion='' caption='Anteil der Branchen am Gesamtvertragsbestand - PK absolut (%) ' subCaption='2003 - 2010' xAxisName='Zeitraum' outCnvBaseFont='Arial' yAxisName='Prozent(%)' bgSWF='chart_back.jpg' showValues='0' exportEnabled='1' exportAction='Save' exportAtClient='0' exportHandler='../ExportHandler/FCExporter.php' formatNumberScale='0' rotateValues='1' divLineColor='bfbfbf' outCnvBaseFontSize ='12' plotGradientColor='' animation=' " . $animateChart . "'>";

 

I use a multi-series-chart with two functions to build datasets and categoeries. Please look at: http://www.fusioncharts.com/docs/?AttDesc/DataPlot.html

 

Please Help ! Thank your for your support !

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