Awesome Chart

描述:当前是关于Echarts图表中的 折线图 示例。
 
            option = {
    title: {
        text: 'Awesome Chart'
    },
    legend : {
			data : ['A', 'B', 'C', 'D'],
			textStyle : {
				color : '#000',
				fontSize : 11
			},
			selected : {
				'A' : true,
				'B' : false,
				'C' : false,
				'D' : false
			}
		},
    toolbox : {
		feature : {
			brush : {
				type : ['lineX', 'clear']
			}
		}
	},
	brush : {
		xAxisIndex : 0,
		throttleDelay :1000,
		throttleType : 'debounce',
		brushType : 'lineX',
        brushStyle:{
            borderWidth: 2,
            color: 'rgba(120,140,180,0.1)',
            borderColor: 'rgba(120,140,180,0.9)'
        },
		outOfBrush : {
			colorAlpha : 0.1
		}
	},
    xAxis: {
        data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
    },
    yAxis: {},
    series: [{
        name:'A',
        type: 'line',
        data:[220, 182, 191, 234, 290, 330, 310]
    },{
        name:'B',
        type: 'line',
        data:[220, 182, 191, 234, 290, 330, 310]
    },{
        name:'C',
        type: 'line',
        data:[220, 182, 191, 234, 290, 330, 310]
    },{
        name:'D',
        type: 'line',
        data:[220, 182, 191, 234, 290, 330, 310]
    }]
};

myChart.on('brushselected',function(){
    
    alert('触发brushselected')
    
})