Python/rfm/客户占比.html

224 lines
6.6 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>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/themes/walden.js"></script>
</head>
<body >
<div id="bfe5f71ec75e47f5bc88709b9a99902b" class="chart-container" style="width:500px; height:350px; "></div>
<script>
var chart_bfe5f71ec75e47f5bc88709b9a99902b = echarts.init(
document.getElementById('bfe5f71ec75e47f5bc88709b9a99902b'), 'walden', {renderer: 'canvas'});
var option_bfe5f71ec75e47f5bc88709b9a99902b = {
"animation": false,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"aria": {
"enabled": false
},
"series": [
{
"type": "pie",
"name": "\u5ba2\u6237\u5206\u7c7b",
"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": "\u91cd\u8981\u4ef7\u503c\u5ba2\u6237",
"value": 36.20
},
{
"name": "\u6d41\u5931\u5ba2\u6237",
"value": 27.15
},
{
"name": "\u65b0\u5ba2\u6237",
"value": 23.88
},
{
"name": "\u6f5c\u529b\u5ba2\u6237",
"value": 5.78
},
{
"name": "\u91cd\u8981\u5524\u56de\u5ba2\u6237",
"value": 3.15
},
{
"name": "\u91cd\u8981\u6df1\u8015\u5ba2\u6237",
"value": 2.25
},
{
"name": "\u4e00\u822c\u7ef4\u6301\u5ba2\u6237",
"value": 0.90
},
{
"name": "\u91cd\u8981\u633d\u7559\u5ba2\u6237",
"value": 0.71
}
],
"radius": [
"0%",
"75%"
],
"center": [
"50%",
"60%"
],
"roseType": "area",
"label": {
"show": true,
"position": "outside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{b|{b}}\n{c|{c}}",
"rich": {
"b": {
"fontWeight": "bold"
},
"c": {
"lineHeight": 25
}
},
"valueAnimation": false
},
"labelLine": {
"show": true,
"showAbove": false,
"length": 15,
"length2": 15,
"smooth": false,
"minTurnAngle": 90,
"maxSurfaceAngle": 90
}
}
],
"legend": [
{
"data": [
"\u91cd\u8981\u4ef7\u503c\u5ba2\u6237",
"\u6d41\u5931\u5ba2\u6237",
"\u65b0\u5ba2\u6237",
"\u6f5c\u529b\u5ba2\u6237",
"\u91cd\u8981\u5524\u56de\u5ba2\u6237",
"\u91cd\u8981\u6df1\u8015\u5ba2\u6237",
"\u4e00\u822c\u7ef4\u6301\u5ba2\u6237",
"\u91cd\u8981\u633d\u7559\u5ba2\u6237"
],
"selected": {},
"show": false,
"left": "center",
"top": "top",
"orient": "horizontal",
"align": "auto",
"padding": 5,
"itemGap": 10,
"itemWidth": 10,
"itemHeight": 10,
"inactiveColor": "#86909C",
"textStyle": {
"color": "#86909C",
"fontStyle": "normal",
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"fontSize": 12
},
"backgroundColor": "transparent",
"borderColor": "#ccc",
"borderWidth": 0,
"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": false,
"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,
"target": "blank",
"subtarget": "blank",
"padding": 5,
"itemGap": 10,
"textAlign": "auto",
"textVerticalAlign": "auto",
"triggerEvent": false
}
]
};
chart_bfe5f71ec75e47f5bc88709b9a99902b.setOption(option_bfe5f71ec75e47f5bc88709b9a99902b);
</script>
</body>
</html>