变更
This commit is contained in:
+175
@@ -0,0 +1,175 @@
|
||||
<!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="7107e8766b634eddbf38173005442313" class="chart-container" style="width:900px; height:500px;"></div>
|
||||
<script>
|
||||
var chart_7107e8766b634eddbf38173005442313 = echarts.init(
|
||||
document.getElementById('7107e8766b634eddbf38173005442313'), 'white', {renderer: 'canvas'});
|
||||
var option_7107e8766b634eddbf38173005442313 = {
|
||||
"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": "\u6d4b\u8bd5\u5730\u56fe",
|
||||
"label": {
|
||||
"show": true,
|
||||
"position": "top",
|
||||
"margin": 8
|
||||
},
|
||||
"mapType": "china",
|
||||
"data": [
|
||||
{
|
||||
"name": "\u5317\u4eac",
|
||||
"value": 99
|
||||
},
|
||||
{
|
||||
"name": "\u4e0a\u6d77",
|
||||
"value": 199
|
||||
},
|
||||
{
|
||||
"name": "\u6e56\u5357",
|
||||
"value": 299
|
||||
},
|
||||
{
|
||||
"name": "\u53f0\u6e7e",
|
||||
"value": 399
|
||||
},
|
||||
{
|
||||
"name": "\u5e7f\u4e1c",
|
||||
"value": 499
|
||||
}
|
||||
],
|
||||
"roam": true,
|
||||
"aspectScale": 0.75,
|
||||
"nameProperty": "name",
|
||||
"selectedMode": false,
|
||||
"zoom": 1,
|
||||
"mapValueCalculation": "sum",
|
||||
"showLegendSymbol": true,
|
||||
"emphasis": {}
|
||||
}
|
||||
],
|
||||
"legend": [
|
||||
{
|
||||
"data": [
|
||||
"\u6d4b\u8bd5\u5730\u56fe"
|
||||
],
|
||||
"selected": {
|
||||
"\u6d4b\u8bd5\u5730\u56fe": 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": [
|
||||
{
|
||||
"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": 1,
|
||||
"max": 9,
|
||||
"label": "1-9",
|
||||
"color": "#CCFFFF"
|
||||
},
|
||||
{
|
||||
"min": 10,
|
||||
"max": 99,
|
||||
"label": "10-99",
|
||||
"color": "#FF6666"
|
||||
},
|
||||
{
|
||||
"min": 100,
|
||||
"max": 999,
|
||||
"label": "100-999",
|
||||
"color": "#990033"
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
chart_7107e8766b634eddbf38173005442313.setOption(option_7107e8766b634eddbf38173005442313);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user