Python/rfm/近十二个自然月客户占比趋势.html

1163 lines
39 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="62d892c1f608416db5591cf8264c6914" class="chart-container" style="width:500px; height:350px; "></div>
<script>
var chart_62d892c1f608416db5591cf8264c6914 = echarts.init(
document.getElementById('62d892c1f608416db5591cf8264c6914'), 'walden', {renderer: 'canvas'});
var option_62d892c1f608416db5591cf8264c6914 = {
"animation": false,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"aria": {
"enabled": false
},
"series": [
{
"type": "bar",
"name": "\u65b0\u5ba2\u6237",
"legendHoverLink": true,
"data": [
{
"value": [
"2013-01",
23.59
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-02",
23.61
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-03",
24.29
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-04",
24.34
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-05",
24.15
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-06",
24.40
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-07",
23.88
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-08",
23.96
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-09",
24.94
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-10",
25.52
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-11",
27.40
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-12",
29.50
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
}
],
"realtimeSort": false,
"showBackground": false,
"stack": "bar_stacked",
"stackStrategy": "samesign",
"cursor": "pointer",
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
"large": false,
"largeThreshold": 400,
"seriesLayoutBy": "column",
"datasetIndex": 0,
"clip": true,
"zlevel": 0,
"z": 2,
"label": {
"show": true,
"margin": 8,
"valueAnimation": false
}
},
{
"type": "bar",
"name": "\u6d41\u5931\u5ba2\u6237",
"legendHoverLink": true,
"data": [
{
"value": [
"2013-01",
28.98
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-02",
28.99
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-03",
28.63
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-04",
28.90
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-05",
29.21
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-06",
29.10
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-07",
30.01
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-08",
30.22
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-09",
29.69
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-10",
29.07
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-11",
27.16
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-12",
25.77
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
}
],
"realtimeSort": false,
"showBackground": false,
"stack": "bar_stacked",
"stackStrategy": "samesign",
"cursor": "pointer",
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
"large": false,
"largeThreshold": 400,
"seriesLayoutBy": "column",
"datasetIndex": 0,
"clip": true,
"zlevel": 0,
"z": 2,
"label": {
"show": true,
"margin": 8,
"valueAnimation": false
}
},
{
"type": "bar",
"name": "\u91cd\u8981\u4ef7\u503c\u5ba2\u6237",
"legendHoverLink": true,
"data": [
{
"value": [
"2013-01",
47.43
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-02",
47.39
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-03",
47.08
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-04",
46.76
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-05",
46.64
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-06",
46.50
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-07",
46.12
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-08",
45.82
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-09",
45.37
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-10",
45.41
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-11",
45.45
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
},
{
"value": [
"2013-12",
44.73
],
"label": {
"show": true,
"position": "inside",
"color": "#86909C",
"margin": 8,
"fontSize": 12,
"fontWeight": "normal",
"fontFamily": "PingFang SC",
"formatter": "{value|{@[1]}}",
"rich": {
"value": {
"fontWeight": "bold"
}
},
"valueAnimation": false
}
}
],
"realtimeSort": false,
"showBackground": false,
"stack": "bar_stacked",
"stackStrategy": "samesign",
"cursor": "pointer",
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
"large": false,
"largeThreshold": 400,
"seriesLayoutBy": "column",
"datasetIndex": 0,
"clip": true,
"zlevel": 0,
"z": 2,
"label": {
"show": true,
"margin": 8,
"valueAnimation": false
}
}
],
"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": "\u7a97\u53e3\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,
"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": [
"2013-01",
"2013-02",
"2013-03",
"2013-04",
"2013-05",
"2013-06",
"2013-07",
"2013-08",
"2013-09",
"2013-10",
"2013-11",
"2013-12"
]
}
],
"yAxis": [
{
"type": "value",
"name": "\u5ba2\u6237\u5360\u6bd4",
"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_62d892c1f608416db5591cf8264c6914.setOption(option_62d892c1f608416db5591cf8264c6914);
</script>
</body>
</html>