Thanks Ely,  This was exactly what I needed and much easier than 
writing an itemRenderer  :)

And I'll be taking your advice and filter the others out.

Mark





--- In [email protected], "Ely Greenfield" <[EMAIL PROTECTED]> 
wrote:
>
>  
> 
>  
> 
>  
> 
> By default, a chart will filter out any items that extend beyond 
the
> defined min/max ranges.  If you set filterData=false on the 
series, it
> will render all items, regardless of how they fit in the ranges.  
It
> will still clip the data region of the chart, so they won't extend
> beyond the visible area.
> 
>  
> 
> Keep in mind that this means that if you have lots of data that 
falls
> outside your defined range, and set filterData to false, you will 
still
> pay a cost for processing them and getting them into the display 
list,
> even though they don't show up on screen.  You'll want to keep an 
eye on
> performance and see if you need to take action to explicitly 
filter the
> data yourself by hand.
> 
>  
> 
> (A middle of the road option...'filter data that falls completely
> outside the min/max, but include data that overlaps it.' Would be 
a nice
> enhancement. Feel free to file the request in the Flex public bug
> database).
> 
>  
> 
> Ely.
> 
>  
> 
>  
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Mark
> Sent: Friday, August 31, 2007 11:26 AM
> To: [email protected]
> Subject: [flexcoders] DateTimeAxis on BarChart needs tweeking
> 
>  
> 
> I have a bar chart that I'm using to display a start date and end 
date 
> for each project in my XML. It works great but when I add minimum 
and 
> maximum values to the DateTimeAxis the records that don't fall 
between 
> that minimum and maximum values don't show. In other words - the 
> projects start and end dates must fall between the minimum and 
maximum 
> values, no overlap on either end. If either one overlaps it won't 
> display the bar. I need the bar to show as long as either the 
start 
> or end date fall in-between.
> 
> My guess is I have to write a custom itemRenderer for the bar 
changing 
> the value, but I'm not sure how to get the minimum and maximum 
values 
> from within the itemRenderer. Any ideas on any of this?
> 
> Thanks
>


Reply via email to