146 lines
3.7 KiB
HTML
146 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Awesome-pyecharts</title>
|
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
|
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/maps/hubei.js"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="a21cf180c31348bea7ba21357fcedcfd" class="chart-container" style="width:1200px; height:800px;margin:auto;top:30px"></div>
|
|
<script>
|
|
var chart_a21cf180c31348bea7ba21357fcedcfd = echarts.init(
|
|
document.getElementById('a21cf180c31348bea7ba21357fcedcfd'), 'white', {renderer: 'canvas'});
|
|
var option_a21cf180c31348bea7ba21357fcedcfd = {
|
|
"animation": true,
|
|
"animationThreshold": 2000,
|
|
"animationDuration": 1000,
|
|
"animationEasing": "cubicOut",
|
|
"animationDelay": 0,
|
|
"animationDurationUpdate": 300,
|
|
"animationEasingUpdate": "cubicOut",
|
|
"animationDelayUpdate": 0,
|
|
"color": [
|
|
"#c23531",
|
|
"#2f4554",
|
|
"#61a0a8",
|
|
"#d48265",
|
|
"#749f83",
|
|
"#ca8622",
|
|
"#bda29a",
|
|
"#6e7074",
|
|
"#546570",
|
|
"#c4ccd3",
|
|
"#f05b72",
|
|
"#ef5b9c",
|
|
"#f47920",
|
|
"#905a3d",
|
|
"#fab27b",
|
|
"#2a5caa",
|
|
"#444693",
|
|
"#726930",
|
|
"#b2d235",
|
|
"#6d8346",
|
|
"#ac6767",
|
|
"#1d953f",
|
|
"#6950a1",
|
|
"#918597"
|
|
],
|
|
"series": [
|
|
{
|
|
"type": "map",
|
|
"name": "\u4e2a\u4eba\u8db3\u8ff9\u5730\u56fe-\u6e56\u5317",
|
|
"label": {
|
|
"show": true,
|
|
"position": "top",
|
|
"margin": 8
|
|
},
|
|
"mapType": "\u6e56\u5317",
|
|
"data": [
|
|
{
|
|
"name": "\u6b66\u6c49\u5e02",
|
|
"value": 1
|
|
}
|
|
],
|
|
"roam": true,
|
|
"zoom": 1,
|
|
"showLegendSymbol": true,
|
|
"emphasis": {}
|
|
}
|
|
],
|
|
"legend": [
|
|
{
|
|
"data": [
|
|
"\u4e2a\u4eba\u8db3\u8ff9\u5730\u56fe-\u6e56\u5317"
|
|
],
|
|
"selected": {
|
|
"\u4e2a\u4eba\u8db3\u8ff9\u5730\u56fe-\u6e56\u5317": true
|
|
},
|
|
"show": true,
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"itemWidth": 25,
|
|
"itemHeight": 14
|
|
}
|
|
],
|
|
"tooltip": {
|
|
"show": true,
|
|
"trigger": "item",
|
|
"triggerOn": "mousemove|click",
|
|
"axisPointer": {
|
|
"type": "line"
|
|
},
|
|
"textStyle": {
|
|
"fontSize": 14
|
|
},
|
|
"borderWidth": 0
|
|
},
|
|
"title": [
|
|
{
|
|
"text": "\u4e2a\u4eba\u8db3\u8ff9\u5730\u56fe-\u6e56\u5317",
|
|
"padding": 5,
|
|
"itemGap": 10
|
|
}
|
|
],
|
|
"visualMap": {
|
|
"show": true,
|
|
"type": "piecewise",
|
|
"min": 0,
|
|
"max": 1,
|
|
"inRange": {
|
|
"color": [
|
|
"#50a3ba",
|
|
"#eac763",
|
|
"#d94e5d"
|
|
]
|
|
},
|
|
"calculable": true,
|
|
"inverse": false,
|
|
"splitNumber": 5,
|
|
"orient": "vertical",
|
|
"showLabel": true,
|
|
"itemWidth": 20,
|
|
"itemHeight": 14,
|
|
"borderWidth": 0,
|
|
"pieces": [
|
|
{
|
|
"max": 1,
|
|
"min": 1,
|
|
"label": "\u53bb\u8fc7",
|
|
"color": "#4EA397"
|
|
},
|
|
{
|
|
"max": 0,
|
|
"min": 0,
|
|
"label": "\u672a\u53bb\u8fc7",
|
|
"color": "#FFFFFF"
|
|
}
|
|
]
|
|
}
|
|
};
|
|
chart_a21cf180c31348bea7ba21357fcedcfd.setOption(option_a21cf180c31348bea7ba21357fcedcfd);
|
|
</script>
|
|
</body>
|
|
</html>
|