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.
199 lines
5.7 KiB
199 lines
5.7 KiB
<!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>
|
|
|
|
</head>
|
|
<body >
|
|
<div id="297e1ef37356447e8a732a9c3830d1e4" class="chart-container" style="width:900px; height:500px; "></div>
|
|
<script>
|
|
var chart_297e1ef37356447e8a732a9c3830d1e4 = echarts.init(
|
|
document.getElementById('297e1ef37356447e8a732a9c3830d1e4'), 'white', {renderer: 'canvas'});
|
|
var option_297e1ef37356447e8a732a9c3830d1e4 = {
|
|
"animation": true,
|
|
"animationThreshold": 2000,
|
|
"animationDuration": 1000,
|
|
"animationEasing": "cubicOut",
|
|
"animationDelay": 0,
|
|
"animationDurationUpdate": 300,
|
|
"animationEasingUpdate": "cubicOut",
|
|
"animationDelayUpdate": 0,
|
|
"aria": {
|
|
"enabled": false
|
|
},
|
|
"color": [
|
|
"#5470c6",
|
|
"#91cc75",
|
|
"#fac858",
|
|
"#ee6666",
|
|
"#73c0de",
|
|
"#3ba272",
|
|
"#fc8452",
|
|
"#9a60b4",
|
|
"#ea7ccc"
|
|
],
|
|
"series": [
|
|
{
|
|
"type": "bar",
|
|
"name": "\u8bc4\u4ef7\u4eba\u6570",
|
|
"legendHoverLink": true,
|
|
"data": [
|
|
3010199.0,
|
|
2372082.0,
|
|
2328728.0,
|
|
2281005.0,
|
|
2242779.0,
|
|
2224669.0,
|
|
2183449.0,
|
|
2146278.0,
|
|
2035032.0,
|
|
1943829.0
|
|
],
|
|
"realtimeSort": false,
|
|
"showBackground": false,
|
|
"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
|
|
}
|
|
}
|
|
],
|
|
"legend": [
|
|
{
|
|
"data": [
|
|
"\u8bc4\u4ef7\u4eba\u6570"
|
|
],
|
|
"selected": {},
|
|
"show": true,
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"itemWidth": 25,
|
|
"itemHeight": 14,
|
|
"backgroundColor": "transparent",
|
|
"borderColor": "#ccc",
|
|
"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": true,
|
|
"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": [
|
|
{
|
|
"show": true,
|
|
"scale": false,
|
|
"nameLocation": "end",
|
|
"nameGap": 15,
|
|
"gridIndex": 0,
|
|
"inverse": false,
|
|
"offset": 0,
|
|
"splitNumber": 5,
|
|
"minInterval": 0,
|
|
"splitLine": {
|
|
"show": true,
|
|
"lineStyle": {
|
|
"show": true,
|
|
"width": 1,
|
|
"opacity": 1,
|
|
"curveness": 0,
|
|
"type": "solid"
|
|
}
|
|
},
|
|
"data": [
|
|
"\u8096\u7533\u514b\u7684\u6551\u8d4e",
|
|
"\u8fd9\u4e2a\u6740\u624b\u4e0d\u592a\u51b7",
|
|
"\u5343\u4e0e\u5343\u5bfb",
|
|
"\u6cf0\u5766\u5c3c\u514b\u53f7",
|
|
"\u963f\u7518\u6b63\u4f20",
|
|
"\u9738\u738b\u522b\u59ec",
|
|
"\u6211\u4e0d\u662f\u836f\u795e",
|
|
"\u76d7\u68a6\u7a7a\u95f4",
|
|
"\u75af\u72c2\u52a8\u7269\u57ce",
|
|
"\u661f\u9645\u7a7f\u8d8a"
|
|
]
|
|
}
|
|
],
|
|
"yAxis": [
|
|
{
|
|
"show": true,
|
|
"scale": false,
|
|
"nameLocation": "end",
|
|
"nameGap": 15,
|
|
"gridIndex": 0,
|
|
"inverse": false,
|
|
"offset": 0,
|
|
"splitNumber": 5,
|
|
"minInterval": 0,
|
|
"splitLine": {
|
|
"show": true,
|
|
"lineStyle": {
|
|
"show": true,
|
|
"width": 1,
|
|
"opacity": 1,
|
|
"curveness": 0,
|
|
"type": "solid"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"title": [
|
|
{
|
|
"show": true,
|
|
"text": "\u8bc4\u4ef7\u4eba\u6570TOP 10\u7535\u5f71",
|
|
"target": "blank",
|
|
"subtarget": "blank",
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"textAlign": "auto",
|
|
"textVerticalAlign": "auto",
|
|
"triggerEvent": false
|
|
}
|
|
]
|
|
};
|
|
chart_297e1ef37356447e8a732a9c3830d1e4.setOption(option_297e1ef37356447e8a732a9c3830d1e4);
|
|
</script>
|
|
</body>
|
|
</html>
|