option = { title: { left: 'center', text: 'test', textStyle: { fontSize: 14 } }, color: ['ff0000', '33ff00', '#0033FF', '#F709F7'], tooltip: { trigger: 'axis' }, legend: { orient: 'horizontal', x: '20%', y: '10%', data: ['test1'] }, xAxis: { type: 'category', data: ['1', '2', '3', '4', '5'] }, yAxis: [ { type : 'value', axisLabel : { formatter: '{value} %' } } ], series: [ { name: 'test1', type: 'line', smooth: true, itemStyle: { normal: { color: "#FF00FF", lineStyle: { color: "#FF00FF" } } }, label:{ show:true, formatter: function( data ) { return data.data+'%'; } }, data:[1,2,90,5,2] } ] };