fix:可视化整理

上级 8d95595f
此差异已折叠。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Awesome-pyecharts</title>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
</head>
<body >
<div id="e93ec85d48b54bf3a84f485e3ded8ac4" class="chart-container" style="width:900px; height:500px; "></div>
<script>
var chart_e93ec85d48b54bf3a84f485e3ded8ac4 = echarts.init(
document.getElementById('e93ec85d48b54bf3a84f485e3ded8ac4'), 'white', {renderer: 'canvas'});
var option_e93ec85d48b54bf3a84f485e3ded8ac4 = {
"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": "line",
"name": "GDP",
"connectNulls": false,
"xAxisIndex": 0,
"symbolSize": 4,
"showSymbol": true,
"smooth": false,
"clip": true,
"step": false,
"data": [
[
"\u4e2d\u56fd",
30
],
[
"\u7f8e\u56fd",
20
],
[
"\u82f1\u56fd",
10
]
],
"hoverAnimation": true,
"label": {
"show": true,
"margin": 8
},
"logBase": 10,
"seriesLayoutBy": "column",
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
},
"areaStyle": {
"opacity": 0
},
"zlevel": 0,
"z": 0
}
],
"legend": [
{
"data": [
"GDP"
],
"selected": {},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14,
"backgroundColor": "transparent",
"borderColor": "#ccc",
"borderWidth": 1,
"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"
},
"xAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": true,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
},
"data": [
"\u4e2d\u56fd",
"\u7f8e\u56fd",
"\u82f1\u56fd"
]
}
],
"yAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": true,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
}
}
],
"title": [
{
"show": true,
"text": "GDP\u5c55\u793a",
"target": "blank",
"subtarget": "blank",
"left": "center",
"bottom": "1%",
"padding": 5,
"itemGap": 10,
"textAlign": "auto",
"textVerticalAlign": "auto",
"triggerEvent": false
}
],
"toolbox": {
"show": true,
"orient": "horizontal",
"itemSize": 15,
"itemGap": 10,
"left": "80%",
"feature": {
"saveAsImage": {
"type": "png",
"backgroundColor": "auto",
"connectedBackgroundColor": "#fff",
"show": true,
"title": "\u4fdd\u5b58\u4e3a\u56fe\u7247",
"pixelRatio": 1
},
"restore": {
"show": true,
"title": "\u8fd8\u539f"
},
"dataView": {
"show": true,
"title": "\u6570\u636e\u89c6\u56fe",
"readOnly": false,
"lang": [
"\u6570\u636e\u89c6\u56fe",
"\u5173\u95ed",
"\u5237\u65b0"
],
"backgroundColor": "#fff",
"textareaColor": "#fff",
"textareaBorderColor": "#333",
"textColor": "#000",
"buttonColor": "#c23531",
"buttonTextColor": "#fff"
},
"dataZoom": {
"show": true,
"title": {
"zoom": "\u533a\u57df\u7f29\u653e",
"back": "\u533a\u57df\u7f29\u653e\u8fd8\u539f"
},
"icon": {},
"filterMode": "filter"
},
"magicType": {
"show": true,
"type": [
"line",
"bar",
"stack",
"tiled"
],
"title": {
"line": "\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",
"bar": "\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",
"stack": "\u5207\u6362\u4e3a\u5806\u53e0",
"tiled": "\u5207\u6362\u4e3a\u5e73\u94fa"
},
"icon": {}
}
}
},
"visualMap": {
"show": true,
"type": "continuous",
"min": 0,
"max": 100,
"inRange": {
"color": [
"#50a3ba",
"#eac763",
"#d94e5d"
]
},
"calculable": true,
"inverse": false,
"splitNumber": 5,
"hoverLink": true,
"orient": "vertical",
"padding": 5,
"showLabel": true,
"itemWidth": 20,
"itemHeight": 140,
"borderWidth": 0
}
};
chart_e93ec85d48b54bf3a84f485e3ded8ac4.setOption(option_e93ec85d48b54bf3a84f485e3ded8ac4);
</script>
</body>
</html>
此差异已折叠。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Awesome-pyecharts</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/china.js"></script>
</head>
<body >
<div id="bbe3b0f57abf4628a030c9ed1a0ac3a2" class="chart-container" style="width:900px; height:500px; "></div>
<script>
var chart_bbe3b0f57abf4628a030c9ed1a0ac3a2 = echarts.init(
document.getElementById('bbe3b0f57abf4628a030c9ed1a0ac3a2'), 'white', {renderer: 'canvas'});
var option_bbe3b0f57abf4628a030c9ed1a0ac3a2 = {
"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": "\u5404\u7701\u4efd\u786e\u8bca\u4eba\u6570",
"label": {
"show": true,
"margin": 8
},
"map": "china",
"data": [
{
"name": "\u53f0\u6e7e",
"value": 15880
},
{
"name": "\u6c5f\u82cf",
"value": 1576
},
{
"name": "\u4e91\u5357",
"value": 982
},
{
"name": "\u6cb3\u5357",
"value": 1518
},
{
"name": "\u4e0a\u6d77",
"value": 2408
},
{
"name": "\u6e56\u5357",
"value": 1181
},
{
"name": "\u6e56\u5317",
"value": 68286
},
{
"name": "\u5e7f\u4e1c",
"value": 2978
},
{
"name": "\u9999\u6e2f",
"value": 12039
},
{
"name": "\u798f\u5efa",
"value": 773
},
{
"name": "\u6d59\u6c5f",
"value": 1417
},
{
"name": "\u5c71\u4e1c",
"value": 923
},
{
"name": "\u56db\u5ddd",
"value": 1179
},
{
"name": "\u5929\u6d25",
"value": 445
},
{
"name": "\u5317\u4eac",
"value": 1107
},
{
"name": "\u9655\u897f",
"value": 668
},
{
"name": "\u5e7f\u897f",
"value": 289
},
{
"name": "\u8fbd\u5b81",
"value": 441
},
{
"name": "\u91cd\u5e86",
"value": 603
},
{
"name": "\u6fb3\u95e8",
"value": 63
},
{
"name": "\u7518\u8083",
"value": 199
},
{
"name": "\u5c71\u897f",
"value": 255
},
{
"name": "\u6d77\u5357",
"value": 190
},
{
"name": "\u5185\u8499\u53e4",
"value": 410
},
{
"name": "\u5409\u6797",
"value": 574
},
{
"name": "\u9ed1\u9f99\u6c5f",
"value": 1613
},
{
"name": "\u5b81\u590f",
"value": 77
},
{
"name": "\u9752\u6d77",
"value": 18
},
{
"name": "\u6c5f\u897f",
"value": 937
},
{
"name": "\u8d35\u5dde",
"value": 147
},
{
"name": "\u897f\u85cf",
"value": 1
},
{
"name": "\u5b89\u5fbd",
"value": 1008
},
{
"name": "\u6cb3\u5317",
"value": 1317
},
{
"name": "\u65b0\u7586",
"value": 980
}
],
"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": [
"\u5404\u7701\u4efd\u786e\u8bca\u4eba\u6570"
],
"selected": {},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14,
"backgroundColor": "transparent",
"borderColor": "#ccc",
"borderWidth": 1,
"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": "\u5168\u56fd\u75ab\u60c5\u5730\u56fe",
"target": "blank",
"subtarget": "blank",
"padding": 5,
"itemGap": 10,
"textAlign": "auto",
"textVerticalAlign": "auto",
"triggerEvent": false
}
],
"visualMap": {
"show": true,
"type": "piecewise",
"min": 0,
"max": 100,
"inRange": {
"color": [
"#50a3ba",
"#eac763",
"#d94e5d"
]
},
"calculable": true,
"inverse": false,
"splitNumber": 5,
"hoverLink": true,
"orient": "vertical",
"padding": 5,
"showLabel": true,
"itemWidth": 20,
"itemHeight": 14,
"borderWidth": 0,
"pieces": [
{
"min": 1,
"max": 99,
"lable": "1~99\u4eba",
"color": "#CCFFFF"
},
{
"min": 100,
"max": 999,
"lable": "100~9999\u4eba",
"color": "#FFFF99"
},
{
"min": 1000,
"max": 4999,
"lable": "1000~4999\u4eba",
"color": "#FF9966"
},
{
"min": 5000,
"max": 9999,
"lable": "5000~99999\u4eba",
"color": "#FF6666"
},
{
"min": 10000,
"max": 99999,
"lable": "10000~99999\u4eba",
"color": "#CC3333"
},
{
"min": 100000,
"lable": "100000+",
"color": "#990033"
}
]
}
};
chart_bbe3b0f57abf4628a030c9ed1a0ac3a2.setOption(option_bbe3b0f57abf4628a030c9ed1a0ac3a2);
</script>
</body>
</html>
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册