|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <title>Awesome-pyecharts</title> |
| 6 | + <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script> |
| 7 | + |
| 8 | +</head> |
| 9 | +<body> |
| 10 | + <div id="430d7b707dee457089d1addddc0ff579" style="width:900px; height:500px;"></div> |
| 11 | + <script> |
| 12 | + var chart_430d7b707dee457089d1addddc0ff579 = echarts.init( |
| 13 | + document.getElementById('430d7b707dee457089d1addddc0ff579'), 'white', {renderer: 'canvas'}); |
| 14 | + var option_430d7b707dee457089d1addddc0ff579 = { |
| 15 | + "color": [ |
| 16 | + "#c23531", |
| 17 | + "#2f4554", |
| 18 | + "#61a0a8", |
| 19 | + "#d48265", |
| 20 | + "#749f83", |
| 21 | + "#ca8622", |
| 22 | + "#bda29a", |
| 23 | + "#6e7074", |
| 24 | + "#546570", |
| 25 | + "#c4ccd3", |
| 26 | + "#f05b72", |
| 27 | + "#ef5b9c", |
| 28 | + "#f47920", |
| 29 | + "#905a3d", |
| 30 | + "#fab27b", |
| 31 | + "#2a5caa", |
| 32 | + "#444693", |
| 33 | + "#726930", |
| 34 | + "#b2d235", |
| 35 | + "#6d8346", |
| 36 | + "#ac6767", |
| 37 | + "#1d953f", |
| 38 | + "#6950a1", |
| 39 | + "#918597" |
| 40 | + ], |
| 41 | + "series": [ |
| 42 | + { |
| 43 | + "type": "bar", |
| 44 | + "name": "\u6587\u79d1(\u4e00\u672c)", |
| 45 | + "data": [ |
| 46 | + 434, |
| 47 | + 444, |
| 48 | + 448, |
| 49 | + 438, |
| 50 | + 468, |
| 51 | + 464, |
| 52 | + 471, |
| 53 | + 471, |
| 54 | + 465, |
| 55 | + 490 |
| 56 | + ], |
| 57 | + "barCategoryGap": "20%", |
| 58 | + "label": { |
| 59 | + "show": true, |
| 60 | + "position": "top", |
| 61 | + "margin": 8 |
| 62 | + } |
| 63 | + }, |
| 64 | + { |
| 65 | + "type": "bar", |
| 66 | + "name": "\u7406\u79d1(\u4e00\u672c)", |
| 67 | + "data": [ |
| 68 | + 414, |
| 69 | + 423, |
| 70 | + 405, |
| 71 | + 423, |
| 72 | + 462, |
| 73 | + 465, |
| 74 | + 455, |
| 75 | + 467, |
| 76 | + 461, |
| 77 | + 466 |
| 78 | + ], |
| 79 | + "barCategoryGap": "20%", |
| 80 | + "label": { |
| 81 | + "show": true, |
| 82 | + "position": "top", |
| 83 | + "margin": 8 |
| 84 | + } |
| 85 | + }, |
| 86 | + { |
| 87 | + "type": "bar", |
| 88 | + "name": "\u6587\u79d1(\u4e8c\u672c)", |
| 89 | + "data": [ |
| 90 | + "\n\t\t\t\t372\n\t\t\t", |
| 91 | + "\n\t\t\t\t390\n\t\t\t", |
| 92 | + "\n\t\t\t\t403\n\t\t\t", |
| 93 | + "\n\t\t\t\t397\n\t\t\t", |
| 94 | + "\n\t\t\t\t412\n\t\t\t", |
| 95 | + "\n\t\t\t\t404\n\t\t\t", |
| 96 | + "\n\t\t\t\t429\n\t\t\t", |
| 97 | + "\n\t\t\t\t428\n\t\t\t", |
| 98 | + "\n\t\t\t\t424\n\t\t\t", |
| 99 | + "\n\t\t\t\t450\n\t\t\t" |
| 100 | + ], |
| 101 | + "barCategoryGap": "20%", |
| 102 | + "label": { |
| 103 | + "show": true, |
| 104 | + "position": "top", |
| 105 | + "margin": 8 |
| 106 | + } |
| 107 | + }, |
| 108 | + { |
| 109 | + "type": "bar", |
| 110 | + "name": "\u7406\u79d1(\u4e8c\u672c)", |
| 111 | + "data": [ |
| 112 | + "\n\t\t\t\t348\n\t\t\t", |
| 113 | + "\n\t\t\t\t351\n\t\t\t", |
| 114 | + "\n\t\t\t\t331\n\t\t\t", |
| 115 | + "\n\t\t\t\t342\n\t\t\t", |
| 116 | + "\n\t\t\t\t393\n\t\t\t", |
| 117 | + "\n\t\t\t\t400\n\t\t\t", |
| 118 | + "\n\t\t\t\t389\n\t\t\t", |
| 119 | + "\n\t\t\t\t399\n\t\t\t", |
| 120 | + "\n\t\t\t\t394\n\t\t\t", |
| 121 | + "\n\t\t\t\t412\n\t\t\t" |
| 122 | + ], |
| 123 | + "barCategoryGap": "20%", |
| 124 | + "label": { |
| 125 | + "show": true, |
| 126 | + "position": "top", |
| 127 | + "margin": 8 |
| 128 | + } |
| 129 | + } |
| 130 | + ], |
| 131 | + "legend": [ |
| 132 | + { |
| 133 | + "data": [ |
| 134 | + "\u6587\u79d1(\u4e00\u672c)", |
| 135 | + "\u7406\u79d1(\u4e00\u672c)", |
| 136 | + "\u6587\u79d1(\u4e8c\u672c)", |
| 137 | + "\u7406\u79d1(\u4e8c\u672c)" |
| 138 | + ], |
| 139 | + "selected": { |
| 140 | + "\u6587\u79d1(\u4e00\u672c)": true, |
| 141 | + "\u7406\u79d1(\u4e00\u672c)": true, |
| 142 | + "\u6587\u79d1(\u4e8c\u672c)": true, |
| 143 | + "\u7406\u79d1(\u4e8c\u672c)": true |
| 144 | + }, |
| 145 | + "show": true |
| 146 | + } |
| 147 | + ], |
| 148 | + "tooltip": { |
| 149 | + "show": true, |
| 150 | + "trigger": "item", |
| 151 | + "triggerOn": "mousemove|click", |
| 152 | + "axisPointer": { |
| 153 | + "type": "line" |
| 154 | + }, |
| 155 | + "textStyle": { |
| 156 | + "fontSize": 14 |
| 157 | + }, |
| 158 | + "borderWidth": 0 |
| 159 | + }, |
| 160 | + "xAxis": [ |
| 161 | + { |
| 162 | + "show": true, |
| 163 | + "scale": false, |
| 164 | + "nameLocation": "end", |
| 165 | + "nameGap": 15, |
| 166 | + "gridIndex": 0, |
| 167 | + "inverse": false, |
| 168 | + "offset": 0, |
| 169 | + "splitNumber": 5, |
| 170 | + "minInterval": 0, |
| 171 | + "splitLine": { |
| 172 | + "show": false, |
| 173 | + "lineStyle": { |
| 174 | + "width": 1, |
| 175 | + "opacity": 1, |
| 176 | + "curveness": 0, |
| 177 | + "type": "solid" |
| 178 | + } |
| 179 | + }, |
| 180 | + "data": [ |
| 181 | + "\n2015\n", |
| 182 | + "\n2014\n", |
| 183 | + "\n2013\n", |
| 184 | + "\n2012\n", |
| 185 | + "\n2011\n", |
| 186 | + "\n2010\n", |
| 187 | + "\n2009\n", |
| 188 | + "\n2008\n", |
| 189 | + "\n2007\n", |
| 190 | + "\n2006\n" |
| 191 | + ] |
| 192 | + } |
| 193 | + ], |
| 194 | + "yAxis": [ |
| 195 | + { |
| 196 | + "show": true, |
| 197 | + "scale": false, |
| 198 | + "nameLocation": "end", |
| 199 | + "nameGap": 15, |
| 200 | + "gridIndex": 0, |
| 201 | + "inverse": false, |
| 202 | + "offset": 0, |
| 203 | + "splitNumber": 5, |
| 204 | + "minInterval": 0, |
| 205 | + "splitLine": { |
| 206 | + "show": false, |
| 207 | + "lineStyle": { |
| 208 | + "width": 1, |
| 209 | + "opacity": 1, |
| 210 | + "curveness": 0, |
| 211 | + "type": "solid" |
| 212 | + } |
| 213 | + } |
| 214 | + } |
| 215 | + ], |
| 216 | + "title": [ |
| 217 | + { |
| 218 | + "text": "\n2006-2017\u4e0a\u6d77\u9ad8\u8003\u5f55\u53d6\u5206\u6570\u7ebf\uff08\u6c47\u603b\uff09\n" |
| 219 | + } |
| 220 | + ] |
| 221 | +}; |
| 222 | + chart_430d7b707dee457089d1addddc0ff579.setOption(option_430d7b707dee457089d1addddc0ff579); |
| 223 | + </script> |
| 224 | +</body> |
| 225 | +</html> |
0 commit comments