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.4 KiB
199 lines
5.4 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="07d643492ef547ee94ca00795126a4d7" class="chart-container" style="width:900px; height:500px; "></div>
|
|
<script>
|
|
var chart_07d643492ef547ee94ca00795126a4d7 = echarts.init(
|
|
document.getElementById('07d643492ef547ee94ca00795126a4d7'), 'white', {renderer: 'canvas'});
|
|
var option_07d643492ef547ee94ca00795126a4d7 = {
|
|
"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": "\u7535\u5f71\u6570\u91cf",
|
|
"legendHoverLink": true,
|
|
"data": [
|
|
114,
|
|
33,
|
|
20,
|
|
20,
|
|
17,
|
|
10,
|
|
6,
|
|
6,
|
|
5,
|
|
3
|
|
],
|
|
"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": [
|
|
"\u7535\u5f71\u6570\u91cf"
|
|
],
|
|
"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": [
|
|
"\u7f8e\u56fd",
|
|
"\u65e5\u672c",
|
|
"\u4e2d\u56fd\u9999\u6e2f",
|
|
"\u82f1\u56fd",
|
|
"\u4e2d\u56fd\u5927\u9646",
|
|
"\u97e9\u56fd",
|
|
"\u6cd5\u56fd",
|
|
"\u4e2d\u56fd\u53f0\u6e7e",
|
|
"\u610f\u5927\u5229",
|
|
"\u5fb7\u56fd"
|
|
]
|
|
}
|
|
],
|
|
"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": "\u6309\u56fd\u5bb6\u5206\u7ec4\u7edf\u8ba1\u7535\u5f71\u6570\u91cf TOP 10",
|
|
"target": "blank",
|
|
"subtarget": "blank",
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"textAlign": "auto",
|
|
"textVerticalAlign": "auto",
|
|
"triggerEvent": false
|
|
}
|
|
]
|
|
};
|
|
chart_07d643492ef547ee94ca00795126a4d7.setOption(option_07d643492ef547ee94ca00795126a4d7);
|
|
</script>
|
|
</body>
|
|
</html>
|