2 Star 5 Fork 1

清安无别事/禅道数据

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bar_position.html 7.51 KB
一键复制 编辑 原始数据 按行查看 历史
an 提交于 2024-01-18 16:45 . 最终版Demo
<!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/macarons.js"></script>
</head>
<body >
<div id="99abd324aaec4c00a5ec1786350a8741" class="chart-container" style="width:530px; height:340px; "></div>
<script>
var chart_99abd324aaec4c00a5ec1786350a8741 = echarts.init(
document.getElementById('99abd324aaec4c00a5ec1786350a8741'), 'macarons', {renderer: 'canvas'});
var option_99abd324aaec4c00a5ec1786350a8741 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"aria": {
"enabled": false
},
"series": [
{
"type": "bar",
"name": "\u672a\u89e3\u51b3",
"legendHoverLink": true,
"data": [
7,
0,
0,
5,
0,
5,
11,
24,
4,
19,
1,
1,
16,
0,
6
],
"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,
"position": "top",
"margin": 8
}
},
{
"type": "bar",
"name": "\u5df2\u5173\u95ed",
"legendHoverLink": true,
"data": [
10,
61,
13,
20,
114,
229,
43,
152,
87,
21,
67,
0,
1,
0,
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,
"position": "top",
"margin": 8
}
},
{
"type": "bar",
"name": "\u5df2\u4fee\u6539",
"legendHoverLink": true,
"data": [
10,
24,
8,
8,
87,
122,
33,
103,
66,
13,
46,
0,
1,
0,
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,
"position": "top",
"margin": 8
}
}
],
"legend": [
{
"data": [
"\u672a\u89e3\u51b3",
"\u5df2\u5173\u95ed",
"\u5df2\u4fee\u6539"
],
"selected": {},
"show": true,
"left": "30%",
"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
}
],
"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": -30,
"margin": 8
},
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": true,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
},
"data": [
"ZT2003",
"ZT2001",
"ZT2002",
"ZT3001",
"ZT3002",
"ZT6001",
"X3 Pro",
"S1\u6c34\u9762\u8239",
"X5 Pro",
"X5",
"X1",
"ZT6002",
"\u6c34\u9762\u901a\u8baf\u57fa\u7ad9",
"\u5145\u7535\u5e95\u5ea7",
"\u592a\u9633\u80fd\u677f"
]
}
],
"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": {
"text": "Bug\u6570\u636e",
"subtext": "\u5404\u9879\u76ee\u60c5\u51b5"
}
};
chart_99abd324aaec4c00a5ec1786350a8741.setOption(option_99abd324aaec4c00a5ec1786350a8741);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qinganan_admin/zen-data.git
[email protected]:qinganan_admin/zen-data.git
qinganan_admin
zen-data
禅道数据
master

搜索帮助