You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
6.1 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>地图</title>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/maps/beijing.js"></script>
</head>
<body >
<div id="12bb8d22d85149799aa2ebd2fa8b33d4" class="chart-container" style="width:900px; height:500px; "></div>
<script>
var chart_12bb8d22d85149799aa2ebd2fa8b33d4 = echarts.init(
document.getElementById('12bb8d22d85149799aa2ebd2fa8b33d4'), 'white', {renderer: 'canvas'});
var option_12bb8d22d85149799aa2ebd2fa8b33d4 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"aria": {
"enabled": false
},
"color": [
"#5470c6",
"#91cc75",
"#fac858",
"#ee6666",
"#73c0de",
"#3ba272",
"#fc8452",
"#9a60b4",
"#ea7ccc"
],
"series": [
{
"type": "map",
"name": "\u5e73\u5747\u623f\u4ef7",
"label": {
"show": true,
"margin": 8
},
"map": "\u5317\u4eac",
"data": [
{
"name": "\u660c\u5e73\u533a",
"value": 42431
},
{
"name": "\u671d\u9633\u533a",
"value": 71897
},
{
"name": "\u5927\u5174\u533a",
"value": 44655
},
{
"name": "\u4e1c\u57ce\u533a",
"value": 106869
},
{
"name": "\u623f\u5c71\u533a",
"value": 26942
},
{
"name": "\u4e30\u53f0\u533a",
"value": 59485
},
{
"name": "\u6d77\u6dc0\u533a",
"value": 99274
},
{
"name": "\u6000\u67d4\u533a",
"value": 27685
},
{
"name": "\u95e8\u5934\u6c9f\u533a",
"value": 38902
},
{
"name": "\u5bc6\u4e91\u533a",
"value": 21399
},
{
"name": "\u5e73\u8c37\u533a",
"value": 22608
},
{
"name": "\u77f3\u666f\u5c71\u533a",
"value": 57073
},
{
"name": "\u987a\u4e49\u533a",
"value": 36841
},
{
"name": "\u901a\u5dde\u533a",
"value": 42286
},
{
"name": "\u897f\u57ce\u533a",
"value": 131446
},
{
"name": "\u5ef6\u5e86\u533a",
"value": 18263
}
],
"roam": true,
"aspectScale": 0.75,
"nameProperty": "name",
"selectedMode": false,
"zoom": 1,
"zlevel": 0,
"z": 2,
"seriesLayoutBy": "column",
"datasetIndex": 0,
"mapValueCalculation": "sum",
"showLegendSymbol": true,
"emphasis": {}
}
],
"legend": [
{
"data": [
"\u5e73\u5747\u623f\u4ef7"
],
"selected": {},
"show": true,
"left": "left",
"orient": "vertical",
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14,
"backgroundColor": "transparent",
"borderColor": "#ccc",
"borderRadius": 0,
"pageButtonItemGap": 5,
"pageButtonPosition": "end",
"pageFormatter": "{current}/{total}",
"pageIconColor": "#2f4554",
"pageIconInactiveColor": "#aaa",
"pageIconSize": 15,
"animationDurationUpdate": 800,
"selector": false,
"selectorPosition": "auto",
"selectorItemGap": 7,
"selectorButtonGap": 10
}
],
"tooltip": {
"show": true,
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"showContent": true,
"alwaysShowContent": false,
"showDelay": 0,
"hideDelay": 100,
"enterable": false,
"confine": false,
"appendToBody": false,
"transitionDuration": 0.4,
"textStyle": {
"fontSize": 14
},
"borderWidth": 0,
"padding": 5,
"order": "seriesAsc"
},
"title": [
{
"show": true,
"text": "\u5317\u4eac\u5e02\u5e02\u533a",
"target": "blank",
"subtarget": "blank",
"left": "center",
"padding": 5,
"itemGap": 10,
"textAlign": "auto",
"textVerticalAlign": "auto",
"triggerEvent": false
}
],
"visualMap": {
"show": true,
"type": "continuous",
"min": 19000,
"max": 130000,
"inRange": {
"color": [
"#1E9600",
"#fff200",
"#ff0000"
]
},
"calculable": true,
"inverse": false,
"splitNumber": 5,
"hoverLink": true,
"orient": "vertical",
"padding": 5,
"showLabel": true,
"itemWidth": 20,
"itemHeight": 140,
"borderWidth": 0
}
};
chart_12bb8d22d85149799aa2ebd2fa8b33d4.setOption(option_12bb8d22d85149799aa2ebd2fa8b33d4);
</script>
</body>
</html>