Chart data filtering

1 view
Skip to first unread message

InKiev

unread,
Aug 5, 2009, 10:44:57 AM8/5/09
to Flex India Community
Hi to all, I have a question . . .

Is there a way to set the quantity of data shown in charts?

For example, I have a Data Provider with 100 records, but I just wanna
show the first 20 . .

How can I achieve this?

Thanks and regards.

Preetham Hegde

unread,
Aug 5, 2009, 11:42:11 PM8/5/09
to flex_...@googlegroups.com
Hi,
I have same requirement in my current project. I wanted to show only 10 data at a time
and have pagination to see remaining.
I copied first 10 data into a temparory arrayCollectoin and binded it into chart.
This helped me in pagination also.
Here is a screenshot of that.


graph.jpg
--
Regards,
Preetham Hegde
9844244834

_______________________________________________
But surely for everything you love you have to pay some price.

Ranjit

unread,
Aug 6, 2009, 5:09:46 AM8/6/09
to Flex India Community
Hi InKeiv/Preetham,

Following post may be helpful to you both

http://ranjitfx.wordpress.com/2009/08/06/charts-data-filtering-range-selector/

Regards,
Ranjit Sail

Preetham Hegde

unread,
Aug 6, 2009, 5:24:43 AM8/6/09
to flex_...@googlegroups.com
Thanks ranjit,

Preetham Hegde

unread,
Aug 6, 2009, 5:26:18 AM8/6/09
to flex_...@googlegroups.com
I had posted asking for solution in customizing chart today... can u help me in solving that.

InKiev

unread,
Aug 6, 2009, 9:54:03 AM8/6/09
to Flex India Community
I really thank to all, I implemented the same solution, just iterate
the data provider to store in another variable the data I want to
show, the solution it's not I want to achieve, but it works.

I take a look to the link sent in a past post, and the problem is that
I have no pattern to filter the data, my requirement is just show the
first "N" records or the last "N" records, but, I really appreciate
your contribution, it will be usefully for another situation . . .

On Aug 6, 4:26 am, Preetham Hegde <preethamheg...@gmail.com> wrote:
> I had posted asking for solution in customizing chart today... can u help me
> in solving that.
>
> On Thu, Aug 6, 2009 at 2:54 PM, Preetham Hegde <preethamheg...@gmail.com>wrote:
>
>
>
> > Thanks ranjit,
>
> > On Thu, Aug 6, 2009 at 2:39 PM, Ranjit <ranjit.s...@gmail.com> wrote:
>
> >> Hi InKeiv/Preetham,
>
> >> Following post may be helpful to you both
>
> >>http://ranjitfx.wordpress.com/2009/08/06/charts-data-filtering-range-...
Reply all
Reply to author
Forward
0 new messages