mirror of
https://github.com/LC044/WeChatMsg
synced 2024-11-16 15:11:41 +08:00
175 lines
4.8 KiB
HTML
175 lines
4.8 KiB
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>
|
||
|
|
||
|
</head>
|
||
|
<body >
|
||
|
<div id="ec5cb8f7096941f5ba51d65454d9c631" class="chart-container" style="width:470px; height:270px; "></div>
|
||
|
<script>
|
||
|
var chart_ec5cb8f7096941f5ba51d65454d9c631 = echarts.init(
|
||
|
document.getElementById('ec5cb8f7096941f5ba51d65454d9c631'), 'white', {renderer: 'canvas'});
|
||
|
var option_ec5cb8f7096941f5ba51d65454d9c631 = {
|
||
|
"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": "pie",
|
||
|
"colorBy": "data",
|
||
|
"legendHoverLink": true,
|
||
|
"selectedMode": false,
|
||
|
"selectedOffset": 10,
|
||
|
"clockwise": true,
|
||
|
"startAngle": 90,
|
||
|
"minAngle": 0,
|
||
|
"minShowLabelAngle": 0,
|
||
|
"avoidLabelOverlap": true,
|
||
|
"stillShowZeroSum": true,
|
||
|
"percentPrecision": 2,
|
||
|
"showEmptyCircle": true,
|
||
|
"emptyCircleStyle": {
|
||
|
"color": "lightgray",
|
||
|
"borderColor": "#000",
|
||
|
"borderWidth": 0,
|
||
|
"borderType": "solid",
|
||
|
"borderDashOffset": 0,
|
||
|
"borderCap": "butt",
|
||
|
"borderJoin": "bevel",
|
||
|
"borderMiterLimit": 10,
|
||
|
"opacity": 1
|
||
|
},
|
||
|
"data": [
|
||
|
{
|
||
|
"name": "\u53d1\u9001",
|
||
|
"value": 0.6
|
||
|
},
|
||
|
{
|
||
|
"name": "\u63a5\u6536",
|
||
|
"value": 0.4
|
||
|
}
|
||
|
],
|
||
|
"radius": [
|
||
|
"0%",
|
||
|
"75%"
|
||
|
],
|
||
|
"center": [
|
||
|
"40%",
|
||
|
"50%"
|
||
|
],
|
||
|
"label": {
|
||
|
"show": true,
|
||
|
"margin": 8,
|
||
|
"formatter": "{b}: {c}"
|
||
|
},
|
||
|
"labelLine": {
|
||
|
"show": true,
|
||
|
"showAbove": false,
|
||
|
"length": 15,
|
||
|
"length2": 15,
|
||
|
"smooth": false,
|
||
|
"minTurnAngle": 90,
|
||
|
"maxSurfaceAngle": 90
|
||
|
},
|
||
|
"rippleEffect": {
|
||
|
"show": true,
|
||
|
"brushType": "stroke",
|
||
|
"scale": 2.5,
|
||
|
"period": 4
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"legend": [
|
||
|
{
|
||
|
"data": [
|
||
|
"\u53d1\u9001",
|
||
|
"\u63a5\u6536"
|
||
|
],
|
||
|
"selected": {},
|
||
|
"type": "scroll",
|
||
|
"show": true,
|
||
|
"left": "60%",
|
||
|
"orient": "vertical",
|
||
|
"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": "\u53d1\u9001\u63a5\u6536\u5360\u6bd4",
|
||
|
"target": "blank",
|
||
|
"subtarget": "blank",
|
||
|
"padding": 5,
|
||
|
"itemGap": 10,
|
||
|
"textAlign": "auto",
|
||
|
"textVerticalAlign": "auto",
|
||
|
"triggerEvent": false
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
chart_ec5cb8f7096941f5ba51d65454d9c631.setOption(option_ec5cb8f7096941f5ba51d65454d9c631);
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|