What would you expect this chart to look like?

 

Ely.

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of rmlsystem
Sent: Tuesday, April 24, 2007 10:44 AM
To: [email protected]
Subject: [flexcoders] Re: Negative plane in Column Chart

 

this works except for the only positive value:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;

private var dp :ArrayCollection= new ArrayCollection([
{x: 1, a: 100, b: 20, c: 40}, 
{x: 2, a: 90, b: 30, c: 10}, 
{x: 3, a: -120, b: -50, c: 40}, 
{x: 4, a: 200, b: 100, c: 60}, 
{x: 5, a: 70, b: 45, c: 30}]);
]]>
</mx:Script>
<mx:CartesianChart id="chart" width="100%" height="100%"
dataProvider="{dp}">
<mx:series> 
<mx:ColumnSet type="stacked" >
<mx:ColumnSeries yField="a" />
<mx:ColumnSeries yField="b" />
<mx:ColumnSeries yField="c" />
</mx:ColumnSet>
</mx:series>
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="x" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis autoAdjust="true" baseAtZero="false"
minimum="-220" />
</mx:verticalAxis> 
</mx:CartesianChart>
</mx:Application>

/////
{x: 3, a: -120, b: -50, c: 40} in this case, c is not renderer, only
if it has a negative value.. :(

Any ideas?

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> 
> 
> Charts don't support stacking negative values. If you need this
> functionality you could simulate it with individual column series with
> min/max fields set. You'll need to preaggregate your values into a new
> dataprovider.
> 
> 
> 
> 
> 
> Ely.
> 
> 
> 
> 

 

<<attachment: image001.jpg>>

<<attachment: image002.jpg>>

Reply via email to