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.

153 lines
3.9 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="b414d6e6863a471b9a0d16908acf35ef" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_b414d6e6863a471b9a0d16908acf35ef = echarts.init(
document.getElementById('b414d6e6863a471b9a0d16908acf35ef'), 'white', {renderer: 'canvas'});
var option_b414d6e6863a471b9a0d16908acf35ef = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"color": [
"#c23531",
"#2f4554",
"#61a0a8",
"#d48265",
"#749f83",
"#ca8622",
"#bda29a",
"#6e7074",
"#546570",
"#c4ccd3",
"#f05b72",
"#ef5b9c",
"#f47920",
"#905a3d",
"#fab27b",
"#2a5caa",
"#444693",
"#726930",
"#b2d235",
"#6d8346",
"#ac6767",
"#1d953f",
"#6950a1",
"#918597"
],
"series": [
{
"type": "pie",
"clockwise": true,
"data": [
{
"name": "\u5c0f\u7c73",
"value": 96
},
{
"name": "\u4e09\u661f",
"value": 107
},
{
"name": "\u534e\u4e3a",
"value": 63
},
{
"name": "\u82f9\u679c",
"value": 137
},
{
"name": "\u9b45\u65cf",
"value": 109
},
{
"name": "VIVO",
"value": 125
},
{
"name": "OPPO",
"value": 52
}
],
"radius": [
"0%",
"75%"
],
"center": [
"50%",
"50%"
],
"label": {
"show": true,
"position": "top",
"margin": 8,
"formatter": "{b}: {c}"
},
"rippleEffect": {
"show": true,
"brushType": "stroke",
"scale": 2.5,
"period": 4
}
}
],
"legend": [
{
"data": [
"\u5c0f\u7c73",
"\u4e09\u661f",
"\u534e\u4e3a",
"\u82f9\u679c",
"\u9b45\u65cf",
"VIVO",
"OPPO"
],
"selected": {},
"show": true,
"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": "Pie-\u57fa\u672c\u793a\u4f8b",
"padding": 5,
"itemGap": 10
}
]
};
chart_b414d6e6863a471b9a0d16908acf35ef.setOption(option_b414d6e6863a471b9a0d16908acf35ef);
</script>
</body>
</html>