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.
213 lines
5.8 KiB
213 lines
5.8 KiB
11 months ago
|
<!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="3ae0304c01ae4d98aae9b937b0062576" class="chart-container" style="width:100%; height:500px; "></div>
|
||
|
<script>
|
||
|
var chart_3ae0304c01ae4d98aae9b937b0062576 = echarts.init(
|
||
|
document.getElementById('3ae0304c01ae4d98aae9b937b0062576'), 'white', {renderer: 'canvas'});
|
||
|
var option_3ae0304c01ae4d98aae9b937b0062576 = {
|
||
|
"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": "\u4f01\u4e1a\u6570\u91cf\uff08\u4e2a\uff09",
|
||
|
"xAxisIndex": 0,
|
||
|
"yAxisIndex": 0,
|
||
|
"legendHoverLink": true,
|
||
|
"data": [
|
||
|
410,
|
||
|
318,
|
||
|
31,
|
||
|
213
|
||
|
],
|
||
|
"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": [
|
||
|
"\u4f01\u4e1a\u6570\u91cf\uff08\u4e2a\uff09"
|
||
|
],
|
||
|
"selected": {},
|
||
|
"show": true,
|
||
|
"padding": 5,
|
||
|
"itemGap": 10,
|
||
|
"itemWidth": 25,
|
||
|
"itemHeight": 14,
|
||
|
"backgroundColor": "transparent",
|
||
|
"borderColor": "#ccc",
|
||
|
"borderWidth": 1,
|
||
|
"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,
|
||
|
"right": "30%",
|
||
|
"orient": "horizontal"
|
||
|
}
|
||
|
],
|
||
|
"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": [
|
||
|
"\u5357\u5b81\u5e02",
|
||
|
"\u67f3\u5dde\u5e02",
|
||
|
"\u5317\u6d77\u5e02",
|
||
|
"\u6842\u6797\u5e02"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"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": "2018\u5e74\u5e7f\u897f\u9ad8\u65b0\u533a\u4f01\u4e1a\u6570\u91cf\u5730\u533a\u5206\u5e03\u56fe",
|
||
|
"target": "blank",
|
||
|
"subtarget": "blank",
|
||
|
"left": "30%",
|
||
|
"padding": 5,
|
||
|
"itemGap": 10,
|
||
|
"textAlign": "auto",
|
||
|
"textVerticalAlign": "auto",
|
||
|
"triggerEvent": false
|
||
|
}
|
||
|
],
|
||
|
"grid": [
|
||
|
{
|
||
|
"show": false,
|
||
|
"zlevel": 0,
|
||
|
"z": 2,
|
||
|
"left": "30%",
|
||
|
"top": "50px",
|
||
|
"right": "30%",
|
||
|
"bottom": "50px",
|
||
|
"containLabel": false,
|
||
|
"backgroundColor": "transparent",
|
||
|
"borderColor": "#ccc",
|
||
|
"borderWidth": 1,
|
||
|
"shadowOffsetX": 0,
|
||
|
"shadowOffsetY": 0
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
chart_3ae0304c01ae4d98aae9b937b0062576.setOption(option_3ae0304c01ae4d98aae9b937b0062576);
|
||
|
window.addEventListener('resize', function(){
|
||
|
chart_3ae0304c01ae4d98aae9b937b0062576.resize();
|
||
|
})
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|