Take a look here:
http://blog.kevinhoyt.org/2008/10/23/um-lots-of-flash-flex-and-zend-php-samples/in
the charts project.
Courtesy of Kevin Hoyt - he implemented a component that has a LineChart and
a DataGrid in a ViewStack (both linked to the same dataProvider), and a
HSlider to control "zoom" of the chart/grid. When you drag the HSlider to
define the range, both update to the selected range.

On Thu, Nov 13, 2008 at 7:57 PM, Blair Cox <[EMAIL PROTECTED]> wrote:

>    What would be really nice is to simply select the range directly from
> the initial chart, since when first loading the dataprovider, the entire
> range is loaded. Every time I try to implement filtering before retrieving
> the data, I get a null reference error.
>
> *private function processFilter*(item:Object):Boolean { return
> item.Date_Collected >= dfconv.format(linechart1.selectedChartItems.xValue.
> *caretItem*).toString() && item.Date_Collected <=
> dfconv.format(linechart1.selectedChartItems.*anchorItem*).toString();
>
> If I could simply define the first and last item selected in a chart
> multiple selection, it would do what I need. Any suggestions?
>
> --
> *Blair
> *
>
>
>
> ------------------------------
> *From: *"cox.blair" <[EMAIL PROTECTED]>
> *Reply-To: *<flexcoders@yahoogroups.com>
> *Date: *Thu, 13 Nov 2008 17:15:39 -0000
> *To: *<flexcoders@yahoogroups.com>
> *Subject: *[flexcoders] How to: Select range in Datagrid to set range in
> Chart?
>
>
>
>
> Okay, I'll do my best to explain what I'm trying to do and see if
> anyone can point me in the direction of a good url and sample -
>
> What I would like to do is select a range of data within a Datagrid,
> so lets say 10 items out of the list 20.
>
> Than whatever is selected in the Datagrid, appears in chart. It is
> merely a graphical way of filtering a date range of data. Currently in
> my example, I select the beginning and ending dates. So all I would
> require to modify this is to be able to pass along the the first and
> last entry selected and define which column will be used.
>
> Any ideas? Cheers.
>
>   
>

Reply via email to