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.

111 lines
3.1 KiB

<!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="5b2874836c6a4d17aaea3307138c550a" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_5b2874836c6a4d17aaea3307138c550a = echarts.init(
document.getElementById('5b2874836c6a4d17aaea3307138c550a'), 'white', {renderer: 'canvas'});
var option_5b2874836c6a4d17aaea3307138c550a = {
"animation": false,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"color": [
"#264478",
"#006FA1",
"#0099AE",
"#00C09F",
"#86E182",
"#F9F871"
],
"series": [
{
"type": "pie",
"clockwise": true,
"data": [
{
"name": "\u5c0f\u5b66",
"value": 369
},
{
"name": "\u521d\u7ea7\u4e2d\u5b66",
"value": 92
},
{
"name": "\u9ad8\u7ea7\u4e2d\u5b66",
"value": 14
},
{
"name": "\u5b8c\u5168\u4e2d\u5b66",
"value": 13
},
{
"name": "\u4e5d\u5e74\u4e00\u8d2f\u5236\u5b66\u6821",
"value": 48
},
{
"name": "\u5341\u4e8c\u5e74\u4e00\u8d2f\u5236\u5b66\u6821",
"value": 1
}
],
"radius": [
"40%",
"75%"
],
"center": [
"50%",
"50%"
],
"label": {
"show": true,
"position": "top",
"margin": 8
}
}
],
"legend": [
{
"data": [
"\u5c0f\u5b66",
"\u521d\u7ea7\u4e2d\u5b66",
"\u9ad8\u7ea7\u4e2d\u5b66",
"\u5b8c\u5168\u4e2d\u5b66",
"\u4e5d\u5e74\u4e00\u8d2f\u5236\u5b66\u6821",
"\u5341\u4e8c\u5e74\u4e00\u8d2f\u5236\u5b66\u6821"
],
"selected": {}
}
],
"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
}
};
chart_5b2874836c6a4d17aaea3307138c550a.setOption(option_5b2874836c6a4d17aaea3307138c550a);
</script>
</body>
</html>