|
| 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/v5/echarts.min.js"></script> |
| 7 | + <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/maps/china.js"></script> |
| 8 | + |
| 9 | +</head> |
| 10 | +<body > |
| 11 | + <div id="cb24d3bbdf0e4b9f8d3a8756f7dd62eb" class="chart-container" style="width:900px; height:500px; "></div> |
| 12 | + <script> |
| 13 | + var chart_cb24d3bbdf0e4b9f8d3a8756f7dd62eb = echarts.init( |
| 14 | + document.getElementById('cb24d3bbdf0e4b9f8d3a8756f7dd62eb'), 'white', {renderer: 'canvas'}); |
| 15 | + var option_cb24d3bbdf0e4b9f8d3a8756f7dd62eb = { |
| 16 | + "animation": true, |
| 17 | + "animationThreshold": 2000, |
| 18 | + "animationDuration": 1000, |
| 19 | + "animationEasing": "cubicOut", |
| 20 | + "animationDelay": 0, |
| 21 | + "animationDurationUpdate": 300, |
| 22 | + "animationEasingUpdate": "cubicOut", |
| 23 | + "animationDelayUpdate": 0, |
| 24 | + "aria": { |
| 25 | + "enabled": false |
| 26 | + }, |
| 27 | + "color": [ |
| 28 | + "#5470c6", |
| 29 | + "#91cc75", |
| 30 | + "#fac858", |
| 31 | + "#ee6666", |
| 32 | + "#73c0de", |
| 33 | + "#3ba272", |
| 34 | + "#fc8452", |
| 35 | + "#9a60b4", |
| 36 | + "#ea7ccc" |
| 37 | + ], |
| 38 | + "series": [ |
| 39 | + { |
| 40 | + "type": "map", |
| 41 | + "name": "\u7a7a\u6c14\u8d28\u91cf", |
| 42 | + "label": { |
| 43 | + "show": true, |
| 44 | + "margin": 8 |
| 45 | + }, |
| 46 | + "map": "china", |
| 47 | + "data": [ |
| 48 | + { |
| 49 | + "name": 95, |
| 50 | + "value": "\u798f\u5efa" |
| 51 | + }, |
| 52 | + { |
| 53 | + "name": 56, |
| 54 | + "value": "\u6cb3\u5357" |
| 55 | + }, |
| 56 | + { |
| 57 | + "name": 87, |
| 58 | + "value": "\u6d59\u6c5f" |
| 59 | + }, |
| 60 | + { |
| 61 | + "name": 92, |
| 62 | + "value": "\u6c5f\u897f" |
| 63 | + }, |
| 64 | + { |
| 65 | + "name": 74, |
| 66 | + "value": "\u8d35\u5dde" |
| 67 | + }, |
| 68 | + { |
| 69 | + "name": 79, |
| 70 | + "value": "\u56db\u5ddd" |
| 71 | + }, |
| 72 | + { |
| 73 | + "name": 82, |
| 74 | + "value": "\u4e0a\u6d77" |
| 75 | + }, |
| 76 | + { |
| 77 | + "name": 68, |
| 78 | + "value": "\u5317\u4eac" |
| 79 | + }, |
| 80 | + { |
| 81 | + "name": 59, |
| 82 | + "value": "\u6e56\u5317" |
| 83 | + }, |
| 84 | + { |
| 85 | + "name": 63, |
| 86 | + "value": "\u5e7f\u897f" |
| 87 | + }, |
| 88 | + { |
| 89 | + "name": 82, |
| 90 | + "value": "\u6cb3\u5317" |
| 91 | + } |
| 92 | + ], |
| 93 | + "roam": true, |
| 94 | + "aspectScale": 0.75, |
| 95 | + "nameProperty": "name", |
| 96 | + "selectedMode": false, |
| 97 | + "zoom": 1, |
| 98 | + "zlevel": 0, |
| 99 | + "z": 2, |
| 100 | + "seriesLayoutBy": "column", |
| 101 | + "datasetIndex": 0, |
| 102 | + "mapValueCalculation": "sum", |
| 103 | + "showLegendSymbol": true, |
| 104 | + "emphasis": {} |
| 105 | + } |
| 106 | + ], |
| 107 | + "legend": [ |
| 108 | + { |
| 109 | + "data": [ |
| 110 | + "\u7a7a\u6c14\u8d28\u91cf" |
| 111 | + ], |
| 112 | + "selected": {}, |
| 113 | + "show": true, |
| 114 | + "padding": 5, |
| 115 | + "itemGap": 10, |
| 116 | + "itemWidth": 25, |
| 117 | + "itemHeight": 14, |
| 118 | + "backgroundColor": "transparent", |
| 119 | + "borderColor": "#ccc", |
| 120 | + "borderWidth": 1, |
| 121 | + "borderRadius": 0, |
| 122 | + "pageButtonItemGap": 5, |
| 123 | + "pageButtonPosition": "end", |
| 124 | + "pageFormatter": "{current}/{total}", |
| 125 | + "pageIconColor": "#2f4554", |
| 126 | + "pageIconInactiveColor": "#aaa", |
| 127 | + "pageIconSize": 15, |
| 128 | + "animationDurationUpdate": 800, |
| 129 | + "selector": false, |
| 130 | + "selectorPosition": "auto", |
| 131 | + "selectorItemGap": 7, |
| 132 | + "selectorButtonGap": 10 |
| 133 | + } |
| 134 | + ], |
| 135 | + "tooltip": { |
| 136 | + "show": true, |
| 137 | + "trigger": "item", |
| 138 | + "triggerOn": "mousemove|click", |
| 139 | + "axisPointer": { |
| 140 | + "type": "line" |
| 141 | + }, |
| 142 | + "showContent": true, |
| 143 | + "alwaysShowContent": false, |
| 144 | + "showDelay": 0, |
| 145 | + "hideDelay": 100, |
| 146 | + "enterable": false, |
| 147 | + "confine": false, |
| 148 | + "appendToBody": false, |
| 149 | + "transitionDuration": 0.4, |
| 150 | + "textStyle": { |
| 151 | + "fontSize": 14 |
| 152 | + }, |
| 153 | + "borderWidth": 0, |
| 154 | + "padding": 5, |
| 155 | + "order": "seriesAsc" |
| 156 | + }, |
| 157 | + "title": [ |
| 158 | + { |
| 159 | + "show": true, |
| 160 | + "text": "\u964d\u96e8\u91cf\u53ef\u89c6\u5316", |
| 161 | + "target": "blank", |
| 162 | + "subtarget": "blank", |
| 163 | + "padding": 5, |
| 164 | + "itemGap": 10, |
| 165 | + "textAlign": "auto", |
| 166 | + "textVerticalAlign": "auto", |
| 167 | + "triggerEvent": false |
| 168 | + } |
| 169 | + ], |
| 170 | + "visualMap": { |
| 171 | + "show": true, |
| 172 | + "type": "piecewise", |
| 173 | + "min": 0, |
| 174 | + "max": 100, |
| 175 | + "inRange": { |
| 176 | + "color": [ |
| 177 | + "#50a3ba", |
| 178 | + "#eac763", |
| 179 | + "#d94e5d" |
| 180 | + ] |
| 181 | + }, |
| 182 | + "calculable": true, |
| 183 | + "inverse": false, |
| 184 | + "splitNumber": 5, |
| 185 | + "hoverLink": true, |
| 186 | + "orient": "vertical", |
| 187 | + "padding": 5, |
| 188 | + "showLabel": true, |
| 189 | + "itemWidth": 20, |
| 190 | + "itemHeight": 14, |
| 191 | + "borderWidth": 0 |
| 192 | + } |
| 193 | +}; |
| 194 | + chart_cb24d3bbdf0e4b9f8d3a8756f7dd62eb.setOption(option_cb24d3bbdf0e4b9f8d3a8756f7dd62eb); |
| 195 | + </script> |
| 196 | +</body> |
| 197 | +</html> |
0 commit comments