Python/rfm/近十二个自然月留存率趋势.html

1290 lines
43 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="d12c52707f724429b689b087dbfb6815" class="chart-container" style="width:500px; height:350px; "></div>
<script>
var chart_d12c52707f724429b689b087dbfb6815 = echarts.init(
document.getElementById('d12c52707f724429b689b087dbfb6815'), 'walden', {renderer: 'canvas'});
var option_d12c52707f724429b689b087dbfb6815 = {
"animation": false,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"aria": {
"enabled": false
},
"series": [
{
"type": "line",
"name": "\u65b0\u5ba2\u6237",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
"smooth": true,
"clip": true,
"step": false,
"stackStrategy": "samesign",
"data": [
{
"value": [
"M+01",
9.95
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+02",
13.17
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+03",
16.13
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+04",
11.83
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+05",
14.25
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+06",
15.86
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+07",
12.10
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+08",
11.83
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+09",
14.78
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+10",
12.90
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+11",
12.10
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+12",
14.78
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
}
],
"hoverAnimation": true,
"label": {
"show": true,
"margin": 8,
"valueAnimation": false
},
"logBase": 10,
"seriesLayoutBy": "column",
"lineStyle": {
"show": true,
"width": 2.5,
"opacity": 1,
"curveness": 0,
"type": "solid"
},
"areaStyle": {
"opacity": 0
},
"zlevel": 0,
"z": 0
},
{
"type": "line",
"name": "\u6d41\u5931\u5ba2\u6237",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
"smooth": true,
"clip": true,
"step": false,
"stackStrategy": "samesign",
"data": [
{
"value": [
"M+01",
10.87
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+02",
9.46
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+03",
11.11
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+04",
7.80
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+05",
9.22
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+06",
8.98
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+07",
9.22
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+08",
9.93
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+09",
8.75
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+10",
11.11
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+11",
6.86
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+12",
7.09
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
}
],
"hoverAnimation": true,
"label": {
"show": true,
"margin": 8,
"valueAnimation": false
},
"logBase": 10,
"seriesLayoutBy": "column",
"lineStyle": {
"show": true,
"width": 2.5,
"opacity": 1,
"curveness": 0,
"type": "solid"
},
"areaStyle": {
"opacity": 0
},
"zlevel": 0,
"z": 0
},
{
"type": "line",
"name": "\u91cd\u8981\u4ef7\u503c\u5ba2\u6237",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
"smooth": true,
"clip": true,
"step": false,
"stackStrategy": "samesign",
"data": [
{
"value": [
"M+01",
35.11
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+02",
38.65
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+03",
40.60
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+04",
39.18
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+05",
44.15
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+06",
41.31
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+07",
39.36
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+08",
46.45
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+09",
42.55
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+10",
43.44
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+11",
38.48
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"M+12",
37.41
],
"symbol": "circle",
"symbolSize": 4,
"symbolKeepAspect": false,
"label": {
"show": true,
"position": "right",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
}
],
"hoverAnimation": true,
"label": {
"show": true,
"margin": 8,
"valueAnimation": false
},
"logBase": 10,
"seriesLayoutBy": "column",
"lineStyle": {
"show": true,
"width": 2.5,
"opacity": 1,
"curveness": 0,
"type": "solid"
},
"areaStyle": {
"opacity": 0
},
"zlevel": 0,
"z": 0
}
],
"legend": [
{
"data": [
"\u65b0\u5ba2\u6237",
"\u6d41\u5931\u5ba2\u6237",
"\u91cd\u8981\u4ef7\u503c\u5ba2\u6237"
],
"selected": {},
"show": true,
"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"
},
"xAxis": [
{
"type": "category",
"name": "\u5468\u671f",
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"nameTextStyle": {
"color": "#86909C",
"fontStyle": "normal",
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"fontSize": 12
},
"gridIndex": 0,
"axisLine": {
"show": true,
"onZero": true,
"onZeroAxisIndex": 0,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid",
"color": "#86909C"
}
},
"axisTick": {
"show": false,
"alignWithLabel": false,
"inside": true,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid",
"color": "#86909C"
}
},
"axisLabel": {
"show": true,
"position": "inside",
"color": "#86909C",
"rotate": -30,
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"valueAnimation": false
},
"inverse": false,
"offset": 0,
"splitNumber": 5,
"boundaryGap": false,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "dashed",
"color": "#E5E6EB"
}
},
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"data": [
"M+01",
"M+02",
"M+03",
"M+04",
"M+05",
"M+06",
"M+07",
"M+08",
"M+09",
"M+10",
"M+11",
"M+12"
]
}
],
"yAxis": [
{
"type": "value",
"name": "\u7559\u5b58\u7387",
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"nameTextStyle": {
"color": "#86909C",
"fontStyle": "normal",
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"fontSize": 12
},
"gridIndex": 0,
"axisLine": {
"show": true,
"onZero": true,
"onZeroAxisIndex": 0,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid",
"color": "#86909C"
}
},
"axisTick": {
"show": false,
"alignWithLabel": false,
"inside": true,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid",
"color": "#86909C"
}
},
"axisLabel": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"valueAnimation": false
},
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "dashed",
"color": "#E5E6EB"
}
},
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0
}
],
"title": [
{
"show": true,
"target": "blank",
"subtarget": "blank",
"padding": 5,
"itemGap": 10,
"textAlign": "auto",
"textVerticalAlign": "auto",
"triggerEvent": false
}
]
};
chart_d12c52707f724429b689b087dbfb6815.setOption(option_d12c52707f724429b689b087dbfb6815);
</script>
</body>
</html>