Drop duplicated axis label in Flex Chart

Posted by Sean Chen on Stack Overflow See other posts from Stack Overflow or by Sean Chen
Published on 2010-03-19T05:18:38Z Indexed on 2010/03/19 5:21 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

Hi, All. I use LineChart in Flex with horizontal category axis and I need drop duplicated category label on the chart.

The data I use are like that: {Product: "C1", Store: "S1", Profit: "1500}, {Product: "C2", Store: "S1", Profit: "1000}, {Product: "C3", Store: "S2", Profit: "800}, {Product: "C4", Store: "S2", Profit: "1200}, {Product: "C5", Store: "S3", Profit: "1800}

Beacuse I set horizontalAxis.categoryField = "Store" , the chart show label "S1,S1,S2,S2,S3" on ths axes. However, both C1 and C2 data point group on the second "S1" category (as same as C3,C4 on second S2).

If I accept group data point on the same x-poistion, is there any idea to drop duplicated label?

© Stack Overflow or respective owner

Related posts about flex

Related posts about chart