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.
196 lines
5.5 KiB
196 lines
5.5 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>
|
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/themes/shine.js"></script>
|
|
|
|
</head>
|
|
<body >
|
|
<div id="66cf902e378046b4a9673c317f195451" class="chart-container" style="width:800px; height:600px; "></div>
|
|
<script>
|
|
var chart_66cf902e378046b4a9673c317f195451 = echarts.init(
|
|
document.getElementById('66cf902e378046b4a9673c317f195451'), 'shine', {renderer: 'canvas'});
|
|
var option_66cf902e378046b4a9673c317f195451 = {
|
|
"animation": true,
|
|
"animationThreshold": 2000,
|
|
"animationDuration": 1000,
|
|
"animationEasing": "cubicOut",
|
|
"animationDelay": 0,
|
|
"animationDurationUpdate": 300,
|
|
"animationEasingUpdate": "cubicOut",
|
|
"animationDelayUpdate": 0,
|
|
"aria": {
|
|
"enabled": false
|
|
},
|
|
"series": [
|
|
{
|
|
"type": "bar",
|
|
"name": "\u8bc4\u5206",
|
|
"legendHoverLink": true,
|
|
"data": [
|
|
"9.3",
|
|
"9.3",
|
|
"9.3",
|
|
"9.3",
|
|
"9.4",
|
|
"9.4",
|
|
"9.5",
|
|
"9.5",
|
|
"9.6",
|
|
"9.7"
|
|
],
|
|
"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\u5206"
|
|
],
|
|
"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,
|
|
"axisLabel": {
|
|
"show": true,
|
|
"rotate": 0,
|
|
"margin": 8
|
|
},
|
|
"inverse": false,
|
|
"offset": 0,
|
|
"splitNumber": 5,
|
|
"minInterval": 0,
|
|
"splitLine": {
|
|
"show": true,
|
|
"lineStyle": {
|
|
"show": true,
|
|
"width": 1,
|
|
"opacity": 1,
|
|
"curveness": 0,
|
|
"type": "solid"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
},
|
|
"data": [
|
|
"\u4e09\u56fd\u6f14\u4e49\uff08\u5168\u4e8c\u518c\uff09",
|
|
"\u52a8\u7269\u519c\u573a",
|
|
"\u98d8",
|
|
"\u767e\u5e74\u5b64\u72ec",
|
|
"1984",
|
|
"\u6d3b\u7740",
|
|
"\u91ce\u8349",
|
|
"\u4e09\u4f53\u5168\u96c6",
|
|
"\u7ea2\u697c\u68a6",
|
|
"\u54c8\u5229\u00b7\u6ce2\u7279"
|
|
]
|
|
}
|
|
],
|
|
"title": [
|
|
{
|
|
"show": true,
|
|
"text": "\u8bc4\u5206\u524d10\u699c",
|
|
"target": "blank",
|
|
"subtarget": "blank",
|
|
"left": "center",
|
|
"bottom": "bottom",
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"textAlign": "auto",
|
|
"textVerticalAlign": "auto",
|
|
"triggerEvent": false
|
|
}
|
|
]
|
|
};
|
|
chart_66cf902e378046b4a9673c317f195451.setOption(option_66cf902e378046b4a9673c317f195451);
|
|
</script>
|
|
</body>
|
|
</html>
|