其中部分数据需要自己填充
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
var option = { baseOption:{ timeline: { show:false, axisType: 'category', autoPlay: true, playInterval: 1000, padding:[0,0,3,0], data: [ '2009-01-01', '2010-01-01','2011-01-01','2012-01-01','2013-01-01', {value: '2014-01-01',symbol: 'diamond',symbolSize: 18}, ], label: { formatter : function(s) { return (new Date(s)).getFullYear(); }, textStyle:{color:'#fff'}}, lineStyle:{color:'#8ECEFE',}, controlStyle:{normal:{color:'#8ECEFE',borderColor:'#8ECEFE',}} }, title: {left: 'center',top: 20}, grid:{top:20}, tooltip : {trigger: 'item',formatter: "{d}%"}, testStyle:{color:'#fff'}, series : [ { type:'pie', radius : '55%', center: ['50%', '50%'], data:[ {value:data.info[6][2], name:'第一产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#FFC907'}}},labelLine:{normal:{lineStyle:{color:'#FFC907'}}},itemStyle:{normal:{color:'#FFC907'}}}, {value:data.info[6][3], name:'第二产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#90C400'}}},labelLine:{normal:{lineStyle:{color:'#90C400'}}},itemStyle:{normal:{color:'#90C400'}}}, {value:data.info[6][4], name:'第三产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#36BFED'}}},labelLine:{normal:{lineStyle:{color:'#36BFED'}}},itemStyle:{normal:{color:'#36BFED'}}} ],} ]}, options:[ { title:{ text:"2009年三产业贡献率", textStyle:{color:'#8ECEFE',}, left:0, }, series : [ { type:'pie', radius : '55%', center: ['50%', '50%'], data:[ {value:data.info[5][2], name:'第一产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#FFC907'}}},labelLine:{normal:{lineStyle:{color:'#FFC907'}}},itemStyle:{normal:{color:'#FFC907'}}}, {value:data.info[5][3], name:'第二产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#90C400'}}},labelLine:{normal:{lineStyle:{color:'#90C400'}}},itemStyle:{normal:{color:'#90C400'}}}, {value:data.info[5][4], name:'第三产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#36BFED'}}},labelLine:{normal:{lineStyle:{color:'#36BFED'}}},itemStyle:{normal:{color:'#36BFED'}}} ],} ]}, { title:{text:"2010年三次产业贡献率"}, series : [ { type:'pie', radius : '55%', center: ['50%', '50%'], data:[ {value:data.info[4][2], name:'第一产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#FFC907'}}},labelLine:{normal:{lineStyle:{color:'#FFC907'}}},itemStyle:{normal:{color:'#FFC907'}}}, {value:data.info[4][3], name:'第二产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#90C400'}}},labelLine:{normal:{lineStyle:{color:'#90C400'}}},itemStyle:{normal:{color:'#90C400'}}}, {value:data.info[4][4], name:'第三产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#36BFED'}}},labelLine:{normal:{lineStyle:{color:'#36BFED'}}},itemStyle:{normal:{color:'#36BFED'}}} ],} ]}, { title:{text:"2011年三次产业贡献率"}, series : [ { type:'pie', radius : '55%', center: ['50%', '50%'], data:[ {value:data.info[3][2], name:'第一产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#FFC907'}}},labelLine:{normal:{lineStyle:{color:'#FFC907'}}},itemStyle:{normal:{color:'#FFC907'}}}, {value:data.info[3][3], name:'第二产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#90C400'}}},labelLine:{normal:{lineStyle:{color:'#90C400'}}},itemStyle:{normal:{color:'#90C400'}}}, {value:data.info[3][4], name:'第三产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#36BFED'}}},labelLine:{normal:{lineStyle:{color:'#36BFED'}}},itemStyle:{normal:{color:'#36BFED'}}} ],} ]}, { title:{text:"2012年三次产业贡献率"}, series : [ { type:'pie', radius : '55%', center: ['50%', '50%'], data:[ {value:data.info[2][2], name:'第一产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#FFC907'}}},labelLine:{normal:{lineStyle:{color:'#FFC907'}}},itemStyle:{normal:{color:'#FFC907'}}}, {value:data.info[2][3], name:'第二产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#90C400'}}},labelLine:{normal:{lineStyle:{color:'#90C400'}}},itemStyle:{normal:{color:'#90C400'}}}, {value:data.info[2][4], name:'第三产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#36BFED'}}},labelLine:{normal:{lineStyle:{color:'#36BFED'}}},itemStyle:{normal:{color:'#36BFED'}}} ],} ]}, { title:{text:"2013年三次产业贡献率"}, series : [ { type:'pie', radius : '55%', center: ['50%', '50%'], data:[ {value:data.info[1][2], name:'第一产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#FFC907'}}},labelLine:{normal:{lineStyle:{color:'#FFC907'}}},itemStyle:{normal:{color:'#FFC907'}}}, {value:data.info[1][3], name:'第二产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#90C400'}}},labelLine:{normal:{lineStyle:{color:'#90C400'}}},itemStyle:{normal:{color:'#90C400'}}}, {value:data.info[1][4], name:'第三产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#36BFED'}}},labelLine:{normal:{lineStyle:{color:'#36BFED'}}},itemStyle:{normal:{color:'#36BFED'}}} ],} ]}, { title:{text:"2014年三次产业贡献率"}, series : [ { type:'pie', radius : '55%', center: ['50%', '50%'], data:[ {value:data.info[0][2], name:'第一产业对GDP的贡献率(%)', label:{normal:{textStyle:{color:'#FFC907'}}}, labelLine:{normal:{lineStyle:{color:'#FFC907'}}},itemStyle:{normal:{color:'#FFC907'}}}, {value:data.info[0][3], name:'第二产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#90C400'}}},labelLine:{normal:{lineStyle:{color:'#90C400'}}},itemStyle:{normal:{color:'#90C400'}}}, {value:data.info[0][4], name:'第三产业对GDP的贡献率(%)',label:{normal:{textStyle:{color:'#36BFED'}}},labelLine:{normal:{lineStyle:{color:'#36BFED'}}},itemStyle:{normal:{color:'#36BFED'}}} ],} ]}, ]}; |