Sign in to follow this  
antonomase

Negative Values In Stacked Charts

Recommended Posts

Hi,

 

I have a serie of three stacked values : green, blue and red.

When some values are negative, the order is changed. In 2007, blue value is under the green one and not above

 

910206stacked2012.jpg

 

Is it possible to have the same order green, blue and red even for the 2007 stack ? Or to have a switch to indicate how the negative values must be stacked ?

 

Best regards

Share this post


Link to post
Share on other sites
<chart caption='Chart' animation='1' 
numberScaleValue='1000,1000,1000' numberScaleUnit='K,M,B' formatNumber='0' numberSuffix='€' 
exportEnabled='1' exportHandler='/FusionChartsXT/ExportHandlers/PHP/FCExporter.php'
exportAtClient='0' exportAction='download' exportFileName='export' 
exportFormats='JPG=Enregistrer au format JPG|PDF=Enregistrer au format PDF' 
showValues='0' showLabels='1' showLegend='1' >
<categories>
<category label='2007' />
<category label='2008' />
<category label='2009' />
<category label='2010' />
</categories>
<dataset seriesName='Green' color='92BE0F, 92BE0F' ratio='100, 100'>
<set value='-7327000' />
<set value='-8326000' />
<set value='-4805000' />
<set value='-1080000' />
</dataset>
<dataset seriesName='Blue' color='9798C3, 9798C3' ratio='100, 100'>
<set value='-6206000' />
<set value='1874000' />
<set value='4037000' />
<set value='4874000' />
</dataset>
<dataset seriesName='Red' color='D85151, D85151' ratio='100, 100'>
<set value='1120000' />
<set value='10202000' />
<set value='8841000' />
<set value='5953000' />
</dataset>
</chart>

Share this post


Link to post
Share on other sites

Hey,

 

Data values are displayed as per the data plots defined in the XML. In 2007 category, data plots are not interchanged, it renders green followed by blue, red. The red data set series is displayed above the green and blue due to a positive value.

 

I'm afraid, there are no attributes to change the order of display.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hi,

My problem is not on red value, but on green and blue one.

My opinion is that the chart is more readable if colors are always in the same order.

In this case, for 2007, blue and green values are both negatives : if we can inverse green and blue, I think it will be easier to compare the values.

 

But perhaps in a future upgrade :)

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