legend:{},
series: [
{
name: '成交',
type: 'line',
data: [10, 12, 21, 54, 260, 830, 710]
},
{
name: '预购',
type: 'line',
data: [30, 182, 434, 791, 390, 30, 10]
},
{
name: '意向',
type: 'line',
data: [1320, 1132, 601, 234, 120, 90, 20]
}
]
如果想要在图表中显示图例,需要在series数组中添加name字段,图例的名字就是name的值