加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
country治愈.html 8.11 KB
一键复制 编辑 原始数据 按行查看 历史
李周 提交于 2023-06-07 21:35 . fetch:以前的项目推送一下
<!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/china.js"></script>
</head>
<body>
<div id="06ec2e29b6f74ffc990417fbefd2de8b" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_06ec2e29b6f74ffc990417fbefd2de8b = echarts.init(
document.getElementById('06ec2e29b6f74ffc990417fbefd2de8b'), 'white', {renderer: 'canvas'});
var option_06ec2e29b6f74ffc990417fbefd2de8b = {
"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": "\u6cbb\u6108",
"label": {
"show": true,
"position": "top",
"margin": 8
},
"mapType": "china",
"data": [
{
"name": "\u5317\u4eac",
"value": "16762"
},
{
"name": "\u6e56\u5317",
"value": "64113"
},
{
"name": "\u5e7f\u4e1c",
"value": "52359"
},
{
"name": "\u6d59\u6c5f",
"value": "4829"
},
{
"name": "\u6cb3\u5357",
"value": "6555"
},
{
"name": "\u6e56\u5357",
"value": "2155"
},
{
"name": "\u91cd\u5e86",
"value": "7435"
},
{
"name": "\u5b89\u5fbd",
"value": "1675"
},
{
"name": "\u56db\u5ddd",
"value": "10326"
},
{
"name": "\u5c71\u4e1c",
"value": "4414"
},
{
"name": "\u5409\u6797",
"value": "40442"
},
{
"name": "\u798f\u5efa",
"value": "7231"
},
{
"name": "\u6c5f\u897f",
"value": "1540"
},
{
"name": "\u6c5f\u82cf",
"value": "3794"
},
{
"name": "\u4e0a\u6d77",
"value": "64176"
},
{
"name": "\u5e7f\u897f",
"value": "2403"
},
{
"name": "\u6d77\u5357",
"value": "9166"
},
{
"name": "\u9655\u897f",
"value": "5107"
},
{
"name": "\u6cb3\u5317",
"value": "2829"
},
{
"name": "\u9ed1\u9f99\u6c5f",
"value": "5242"
},
{
"name": "\u8fbd\u5b81",
"value": "2877"
},
{
"name": "\u4e91\u5357",
"value": "4380"
},
{
"name": "\u5929\u6d25",
"value": "2612"
},
{
"name": "\u5c71\u897f",
"value": "4044"
},
{
"name": "\u7518\u8083",
"value": "1555"
},
{
"name": "\u5185\u8499\u53e4",
"value": "8312"
},
{
"name": "\u53f0\u6e7e",
"value": "13742"
},
{
"name": "\u6fb3\u95e8",
"value": "1270"
},
{
"name": "\u9999\u6e2f",
"value": "106785"
},
{
"name": "\u8d35\u5dde",
"value": "1707"
},
{
"name": "\u897f\u85cf",
"value": "1518"
},
{
"name": "\u9752\u6d77",
"value": "490"
},
{
"name": "\u65b0\u7586",
"value": "2629"
},
{
"name": "\u5b81\u590f",
"value": "238"
}
],
"roam": true,
"aspectScale": 0.75,
"nameProperty": "name",
"selectedMode": false,
"zoom": 1,
"mapValueCalculation": "sum",
"showLegendSymbol": true,
"emphasis": {}
}
],
"legend": [
{
"data": [
"\u6cbb\u6108"
],
"selected": {
"\u6cbb\u6108": 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": "\u4e2d\u56fd\u5b9e\u65f6\u75ab\u60c5\u56fe-\u6cbb\u6108\u4eba\u6570\uff1a464712",
"padding": 5,
"itemGap": 10
}
],
"visualMap": {
"show": true,
"type": "piecewise",
"min": 0,
"max": 100,
"inRange": {
"color": [
"#50a3ba",
"#eac763",
"#d94e5d"
]
},
"calculable": true,
"inverse": false,
"splitNumber": 5,
"orient": "vertical",
"showLabel": true,
"itemWidth": 20,
"itemHeight": 14,
"borderWidth": 0,
"pieces": [
{
"min": 1000,
"label": ">1000\u4eba",
"color": "#6F171F"
},
{
"min": 500,
"max": 1000,
"label": "500-1000\u4eba",
"color": "#C92C34"
},
{
"min": 100,
"max": 499,
"label": "100-499\u4eba",
"color": "#E35B52"
},
{
"min": 10,
"max": 99,
"label": "10-99\u4eba",
"color": "#F39E86"
},
{
"min": 1,
"max": 9,
"label": "1-9\u4eba",
"color": "#FDEBD0"
}
]
}
};
chart_06ec2e29b6f74ffc990417fbefd2de8b.setOption(option_06ec2e29b6f74ffc990417fbefd2de8b);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化