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

623 lines
20 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="e191a71f01fe40e9a22c423bab5f0406" class="chart-container" style="width:500px; height:350px; "></div>
<script>
var chart_e191a71f01fe40e9a22c423bab5f0406 = echarts.init(
document.getElementById('e191a71f01fe40e9a22c423bab5f0406'), 'walden', {renderer: 'canvas'});
var option_e191a71f01fe40e9a22c423bab5f0406 = {
"animation": false,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"aria": {
"enabled": false
},
"series": [
{
"type": "line",
"name": "series_name",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
"smooth": true,
"clip": true,
"step": false,
"stackStrategy": "samesign",
"data": [
{
"value": [
"2013-01",
1380
],
"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": [
"2013-02",
1383
],
"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": [
"2013-03",
1392
],
"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": [
"2013-04",
1400
],
"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": [
"2013-05",
1400
],
"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": [
"2013-06",
1411
],
"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": [
"2013-07",
1419
],
"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": [
"2013-08",
1429
],
"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": [
"2013-09",
1441
],
"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": [
"2013-10",
1439
],
"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": [
"2013-11",
1437
],
"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": [
"2013-12",
1458
],
"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.2
},
"zlevel": 0,
"z": 0
}
],
"legend": [
{
"data": [
"series_name"
],
"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"
},
"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,
"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": [
"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\u6570",
"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,
"min": 1350,
"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_e191a71f01fe40e9a22c423bab5f0406.setOption(option_e191a71f01fe40e9a22c423bab5f0406);
</script>
</body>
</html>