I was afraid of that.  Stacking charts in Flex 1.5 have stricter
requirements on the data...namely, all of the items must be present in
the first series, the values must be numeric, and you can't use the same
field name in different series.  Flex 2 only requires the values to be
numeric, so your example should work fine in Flex 2. But that probably
doesn't help too much ;)

I can think of two workarounds, neither of which is ideal, but might do
the trick.

1) preprocess your data, and replace missing values with 0.

2) preprocess your data, and do the summing yourself.  Instead of
stacking the series, make them each floating columns, with the min value
set to the sum of the previous series, and the max value set to the sum
of the previous series plus its value.


Ely.


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jgraham_us
Sent: Thursday, May 11, 2006 7:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 1.5 - Possible BarChart bug?

Yes, sorry its a stacked series.  The first item in the series is always
undefined. 

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]>
wrote:
>
>
>
> Are you stacking the series?
>
> Ely.

>
> -----Original Message-----
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> Behalf Of jgraham_us
> Sent: Wednesday, May 10, 2006 9:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 1.5 - Possible BarChart bug?
>
> Here is an example of the problem I am seeing. 
>
> 1)  I have a BarChart with 4 BarSeries, the order of the BarSeries
> matters here..  So the xField values on the BarSeries are set
> value1,value2,value3,value4
>
> 2)  The dataProvider for the BarChart comes from a remote object. 
>
> 3)  There are cases where one of the xField values is not in the
remote
> object being used to populate the charts data.
>
> 4)  When there is no value for value1, being the first value in
the list
> the chart still renders the value and the tooltip shows undefined,
but
> it only does this when the value is missing for the first
BarSeries.
>
> 5)  Just to make this clear if value1=10,value4=20 ,but nothing was
> returned for value2 and value3 the chart renders fine.  If
value2=20,
> value3=30, value4=50 but nothing was returned for value1, the chart
> still renders value1 but shows undefined for the value and only
really
> shows the flyover, there is no visual representation other than
that.
>
> Does anyone have any ideas or has anyone seen this bug?
>    
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
~-->
> Get to your groups with one click. Know instantly when new email
arrives
> http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
> -------------------------------------------------------------------
-~->
>
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>






------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology.
It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to