You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
168 lines
4.6 KiB
168 lines
4.6 KiB
6 months ago
|
<!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>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="150dd4869de6437c862a2539d079fb42" class="chart-container" style="width:900px; height:500px;"></div>
|
||
|
<script>
|
||
|
var chart_150dd4869de6437c862a2539d079fb42 = echarts.init(
|
||
|
document.getElementById('150dd4869de6437c862a2539d079fb42'), 'white', {renderer: 'canvas'});
|
||
|
var option_150dd4869de6437c862a2539d079fb42 = {
|
||
|
"animation": true,
|
||
|
"animationThreshold": 2000,
|
||
|
"animationDuration": 1000,
|
||
|
"animationEasing": "cubicOut",
|
||
|
"animationDelay": 0,
|
||
|
"animationDurationUpdate": 300,
|
||
|
"animationEasingUpdate": "cubicOut",
|
||
|
"animationDelayUpdate": 0,
|
||
|
"color": [
|
||
|
"#9fe080",
|
||
|
"#5c7bd9",
|
||
|
"#ffdc60",
|
||
|
"#ff7070",
|
||
|
"#7ed3fc",
|
||
|
"#8470FF"
|
||
|
],
|
||
|
"series": [
|
||
|
{
|
||
|
"type": "pie",
|
||
|
"name": "\u516c\u53f8\u89c4\u6a21\u997c\u56fe",
|
||
|
"clockwise": true,
|
||
|
"data": [
|
||
|
{
|
||
|
"name": "100-499\u4eba",
|
||
|
"value": 356
|
||
|
},
|
||
|
{
|
||
|
"name": "1000-9999\u4eba",
|
||
|
"value": 418
|
||
|
},
|
||
|
{
|
||
|
"name": "10000\u4eba\u4ee5\u4e0a",
|
||
|
"value": 235
|
||
|
},
|
||
|
{
|
||
|
"name": "20-99\u4eba",
|
||
|
"value": 423
|
||
|
},
|
||
|
{
|
||
|
"name": "20\u4eba\u4ee5\u4e0b",
|
||
|
"value": 81
|
||
|
},
|
||
|
{
|
||
|
"name": "500-999\u4eba",
|
||
|
"value": 212
|
||
|
},
|
||
|
{
|
||
|
"name": "\u4e0a\u5e02\u516c\u53f8",
|
||
|
"value": 4
|
||
|
},
|
||
|
{
|
||
|
"name": "\u5176\u5b83",
|
||
|
"value": 1
|
||
|
},
|
||
|
{
|
||
|
"name": "\u5408\u8d44",
|
||
|
"value": 4
|
||
|
},
|
||
|
{
|
||
|
"name": "\u56fd\u4f01",
|
||
|
"value": 5
|
||
|
},
|
||
|
{
|
||
|
"name": "\u5916\u5546\u72ec\u8d44",
|
||
|
"value": 3
|
||
|
},
|
||
|
{
|
||
|
"name": "\u6c11\u8425",
|
||
|
"value": 74
|
||
|
},
|
||
|
{
|
||
|
"name": "\u80a1\u4efd\u5236\u4f01\u4e1a",
|
||
|
"value": 6
|
||
|
}
|
||
|
],
|
||
|
"radius": [
|
||
|
0,
|
||
|
"50%"
|
||
|
],
|
||
|
"center": [
|
||
|
"50%",
|
||
|
"50%"
|
||
|
],
|
||
|
"label": {
|
||
|
"show": true,
|
||
|
"position": "top",
|
||
|
"margin": 8,
|
||
|
"formatter": "{b}:{d}%"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"legend": [
|
||
|
{
|
||
|
"data": [
|
||
|
"100-499\u4eba",
|
||
|
"1000-9999\u4eba",
|
||
|
"10000\u4eba\u4ee5\u4e0a",
|
||
|
"20-99\u4eba",
|
||
|
"20\u4eba\u4ee5\u4e0b",
|
||
|
"500-999\u4eba",
|
||
|
"\u4e0a\u5e02\u516c\u53f8",
|
||
|
"\u5176\u5b83",
|
||
|
"\u5408\u8d44",
|
||
|
"\u56fd\u4f01",
|
||
|
"\u5916\u5546\u72ec\u8d44",
|
||
|
"\u6c11\u8425",
|
||
|
"\u80a1\u4efd\u5236\u4f01\u4e1a"
|
||
|
],
|
||
|
"selected": {},
|
||
|
"show": true,
|
||
|
"left": "10%",
|
||
|
"top": "18%",
|
||
|
"orient": "vertical",
|
||
|
"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": "\u5404\u79cd\u516c\u53f8\u89c4\u6a21\u6240\u5360\u6bd4\u4f8b",
|
||
|
"left": "35%",
|
||
|
"top": "3%",
|
||
|
"padding": 5,
|
||
|
"itemGap": 10,
|
||
|
"textStyle": {
|
||
|
"fontSize": 25
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
chart_150dd4869de6437c862a2539d079fb42.setOption(option_150dd4869de6437c862a2539d079fb42);
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|