Hello,

 

I too am interested in a generic function. 

 

Recently I needed the same you wrote below . For that I made my own
function that goes through (for each) my dataprovider and makes makes an
object with client name as one value and time as another (taken your
example). It isn't hard to do, but creates a overhead that I don't like
J

 

Mikhail 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of romualdquantin
Sent: maandag 16 juni 2008 13:32
To: [email protected]
Subject: [flexcoders] Flex Charts/DataProvider sum

 

hi Eveyone,

I've got a dataprovider that I apply on a pie charts, it is working
but is there any way that I can automaticaly get a sum of the field I
display?

For example:

{client:client1, project:project1, time:2}
{client:client1, project:project1, time:2}
{client:client1, project:project2, time:2}
{client:client2, project:project4, time:2}
{client:client2, project:project4, time:2}
{client:client2, project:project5, time:2}

I always display the field time, the pie is showing me 6 parts, which
is probably normal.

Here is the thing, is there any way I could get the sum by client or
project without create actionscript code?

to get for example, filtered by client:
{client:client1, time:6}
{client:client2, time:6}
or filtered by project:
{project:project1, time:4}
{project:project4, time:4}

Any sumFilter that could take the filtered field and the field to sum?
or other property that could me?

The real dataprovider is a lot bigger than that, It would make me able
filter all this data without create an actionscript for every kind of
filter I want.

Any hints?

thanks

Romuald

 

Reply via email to