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.
141 lines
4.0 KiB
141 lines
4.0 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>
|
||
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/themes/infographic.js"></script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="cf9171b428624c54bc4aff53cf3f918d" class="chart-container" style="width:900px; height:500px;"></div>
|
||
|
<script>
|
||
|
var chart_cf9171b428624c54bc4aff53cf3f918d = echarts.init(
|
||
|
document.getElementById('cf9171b428624c54bc4aff53cf3f918d'), 'infographic', {renderer: 'canvas'});
|
||
|
var option_cf9171b428624c54bc4aff53cf3f918d = {
|
||
|
"animation": true,
|
||
|
"animationThreshold": 2000,
|
||
|
"animationDuration": 1000,
|
||
|
"animationEasing": "cubicOut",
|
||
|
"animationDelay": 0,
|
||
|
"animationDurationUpdate": 300,
|
||
|
"animationEasingUpdate": "cubicOut",
|
||
|
"animationDelayUpdate": 0,
|
||
|
"series": [
|
||
|
{
|
||
|
"type": "pie",
|
||
|
"name": "\u516c\u53f8\u7c7b\u578b\u73af\u5f62\u56fe",
|
||
|
"clockwise": true,
|
||
|
"data": [
|
||
|
{
|
||
|
"name": "\u4e0a\u5e02\u516c\u53f8",
|
||
|
"value": 192
|
||
|
},
|
||
|
{
|
||
|
"name": "\u4e8b\u4e1a\u5355\u4f4d",
|
||
|
"value": 2
|
||
|
},
|
||
|
{
|
||
|
"name": "\u5176\u5b83",
|
||
|
"value": 71
|
||
|
},
|
||
|
{
|
||
|
"name": "\u5408\u8d44",
|
||
|
"value": 39
|
||
|
},
|
||
|
{
|
||
|
"name": "\u56fd\u4f01",
|
||
|
"value": 80
|
||
|
},
|
||
|
{
|
||
|
"name": "\u5916\u5546\u72ec\u8d44",
|
||
|
"value": 289
|
||
|
},
|
||
|
{
|
||
|
"name": "\u6c11\u8425",
|
||
|
"value": 714
|
||
|
},
|
||
|
{
|
||
|
"name": "\u6e2f\u6fb3\u53f0\u516c\u53f8",
|
||
|
"value": 4
|
||
|
},
|
||
|
{
|
||
|
"name": "\u80a1\u4efd\u5236\u4f01\u4e1a",
|
||
|
"value": 132
|
||
|
}
|
||
|
],
|
||
|
"radius": [
|
||
|
"20%",
|
||
|
"40%"
|
||
|
],
|
||
|
"center": [
|
||
|
"50%",
|
||
|
"40%"
|
||
|
],
|
||
|
"label": {
|
||
|
"show": true,
|
||
|
"position": "top",
|
||
|
"margin": 8,
|
||
|
"formatter": "{b}:{d}%"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"legend": [
|
||
|
{
|
||
|
"data": [
|
||
|
"\u4e0a\u5e02\u516c\u53f8",
|
||
|
"\u4e8b\u4e1a\u5355\u4f4d",
|
||
|
"\u5176\u5b83",
|
||
|
"\u5408\u8d44",
|
||
|
"\u56fd\u4f01",
|
||
|
"\u5916\u5546\u72ec\u8d44",
|
||
|
"\u6c11\u8425",
|
||
|
"\u6e2f\u6fb3\u53f0\u516c\u53f8",
|
||
|
"\u80a1\u4efd\u5236\u4f01\u4e1a"
|
||
|
],
|
||
|
"selected": {},
|
||
|
"show": true,
|
||
|
"left": "15%",
|
||
|
"top": "15%",
|
||
|
"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": "\u516c\u53f8\u7c7b\u578b",
|
||
|
"left": "35%",
|
||
|
"top": "3%",
|
||
|
"padding": 5,
|
||
|
"itemGap": 10,
|
||
|
"textStyle": {
|
||
|
"fontSize": 25
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
chart_cf9171b428624c54bc4aff53cf3f918d.setOption(option_cf9171b428624c54bc4aff53cf3f918d);
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|