加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
湖北疫情地图.html 6.59 KB
一键复制 编辑 原始数据 按行查看 历史
yyf 提交于 2021-12-25 20:55 . 一稿写完收工。。。
<!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="683522b760474ef29f010adaeae65735" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_683522b760474ef29f010adaeae65735 = echarts.init(
document.getElementById('683522b760474ef29f010adaeae65735'), 'white', {renderer: 'canvas'});
var option_683522b760474ef29f010adaeae65735 = {
"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": "\u6e56\u5317\u7701\u65b0\u589e\u75ab\u60c5",
"label": {
"show": true,
"position": "top",
"margin": 8
},
"mapType": "\u6e56\u5317",
"data": [
{
"name": "\u6b66\u6c49\u5e02",
"value": 0
},
{
"name": "\u5b5d\u611f\u5e02",
"value": 0
},
{
"name": "\u9ec4\u5188\u5e02",
"value": 0
},
{
"name": "\u8346\u5dde\u5e02",
"value": 0
},
{
"name": "\u9102\u5dde\u5e02",
"value": 0
},
{
"name": "\u968f\u5dde\u5e02",
"value": 0
},
{
"name": "\u8944\u9633\u5e02",
"value": 0
},
{
"name": "\u9ec4\u77f3\u5e02",
"value": 0
},
{
"name": "\u8346\u95e8\u5e02",
"value": 0
},
{
"name": "\u5b9c\u660c\u5e02",
"value": 0
},
{
"name": "\u54b8\u5b81\u5e02",
"value": 0
},
{
"name": "\u5341\u5830\u5e02",
"value": 0
},
{
"name": "\u4ed9\u6843\u5e02",
"value": 0
},
{
"name": "\u5929\u95e8\u5e02",
"value": 0
},
{
"name": "\u6069\u65bd\u5dde\u5e02",
"value": 0
},
{
"name": "\u6f5c\u6c5f\u5e02",
"value": 0
},
{
"name": "\u5883\u5916\u8f93\u5165\u5e02",
"value": 0
},
{
"name": "\u795e\u519c\u67b6\u5e02",
"value": 0
},
{
"name": "\u5883\u5916\u8f93\u5165\u4eba\u5458\u5e02",
"value": 0
},
{
"name": "\u76d1\u72f1\u7cfb\u7edf\u5e02",
"value": 0
},
{
"name": "\u672a\u660e\u786e\u5730\u533a\u5e02",
"value": 0
},
{
"name": "\u795e\u519c\u67b6\u6797\u533a\u5e02",
"value": 0
}
],
"roam": true,
"aspectScale": 0.75,
"nameProperty": "name",
"selectedMode": false,
"zoom": 1,
"mapValueCalculation": "sum",
"showLegendSymbol": true,
"emphasis": {}
}
],
"legend": [
{
"data": [
"\u6e56\u5317\u7701\u65b0\u589e\u75ab\u60c5"
],
"selected": {
"\u6e56\u5317\u7701\u65b0\u589e\u75ab\u60c5": true
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
"show": true,
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"showContent": true,
"alwaysShowContent": false,
"showDelay": 0,
"hideDelay": 100,
"textStyle": {
"fontSize": 14
},
"borderWidth": 0,
"padding": 5
},
"title": [
{
"text": "\u6e56\u5317\u65b0\u589e\u75ab\u60c5\u60c5\u51b5",
"padding": 5,
"itemGap": 10
}
],
"visualMap": {
"show": true,
"type": "piecewise",
"min": 0,
"max": 100,
"inRange": {
"color": [
"#50a3ba",
"#eac763",
"#d94e5d"
]
},
"calculable": true,
"inverse": false,
"splitNumber": 3,
"orient": "vertical",
"showLabel": true,
"itemWidth": 20,
"itemHeight": 14,
"borderWidth": 0,
"pieces": [
{
"min": 1,
"max": 9,
"label": "1-9\u4eba",
"color": "#ffefd7"
},
{
"min": 10,
"max": 99,
"label": "10-99\u4eba",
"color": "#ffd2a0"
},
{
"min": 100,
"label": "100\u4eba\u4ee5\u4e0a",
"color": "#e64b47"
}
]
}
};
chart_683522b760474ef29f010adaeae65735.setOption(option_683522b760474ef29f010adaeae65735);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化