flex4中关于lineChart数据源格式的问题

lineChart很容易展示如下格式的数据
[{profit:10,expenses:10,amount:10},
{profit:30,expenses:50,amount:30},
{profit:19,expenses:25,amount:83},
{profit:144,expenses:44,amount:44}]
图为3条线分别是profit,expenses和amount.

但是当数据格式为如下格式时:
{'site':'1号','M_1':100,'M_2':100,'M_3':100,'M_4':100,'M_5':100,'M_6':100},
{'site':'2号','M_1':200,'M_2':200,'M_3':200,'M_4':200,'M_5':200,'M_6':200},
{'site':'3号','M_1':300,'M_2':300,'M_3':300,'M_4':300,'M_5':300,'M_6':300},
{'site':'4号','M_1':400,'M_2':400,'M_3':400,'M_4':400,'M_5':400,'M_6':400}
要求画出4条线,每个site一条线,x轴为M_1,M_2,M_3,M_4,M_5,M_6,该怎么办?

你可能感兴趣的:(Flex)