PDA

View Full Version : LineChart/CartesianChart combine ArrayCollection items with same date. (flex 3)


springframework
04-09-2008, 07:54 PM
I have a line chart.

I have a dataprovider.

my dataprovider has a "Date" field (which will be used as the x-axis).

There are multiple items in my dataprovider with the same "Date"

example: "08/08/2008" is the in the "Date" field for 10 items

I want all records with the same "Date" ... "08/08/2008" to have their y-axis values totaled so that there is only one "08/08/2008" displayed on the chart

currently my chart has multiple "08/08/2008" values displaying.

All the examples I find online also have duplicate x-axis values showing up where duplicate values are present.


Does anyone know how to get it to combine the y-axis values so not to have duplicate x-axis values?

kahuja
04-09-2008, 09:39 PM
All the charting tools I have worked with, have simple logic that works on the keys. They do not have logic to sum up keys, they rely on the data. If you give, then data with 3 duplicate keys, they will render the same.

I have worked with only a few tools (not so much), but all that I used had same rendering logic. Even excel does the same.

mna1lisa1
09-24-2008, 11:06 PM
Let me know if you figur it out
Chris
also join 200,000 people as we sail around the world www.outtoseaandoverboard.com
I have a line chart.

I have a dataprovider.

my dataprovider has a "Date" field (which will be used as the x-axis).

There are multiple items in my dataprovider with the same "Date"

example: "08/08/2008" is the in the "Date" field for 10 items

I want all records with the same "Date" ... "08/08/2008" to have their y-axis values totaled so that there is only one "08/08/2008" displayed on the chart

currently my chart has multiple "08/08/2008" values displaying.

All the examples I find online also have duplicate x-axis values showing up where duplicate values are present.


Does anyone know how to get it to combine the y-axis values so not to have duplicate x-axis values?