3 Star 2 Fork 1

summer!/yiqing_pyecharts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
柱状图.html 7.41 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>疫情治愈率和死亡率情况</title>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
</head>
<body>
<div id="76595d6d584c4aaa94766a4ab2d6d406" class="chart-container" style="width:1600px; height:600px;"></div>
<script>
var chart_76595d6d584c4aaa94766a4ab2d6d406 = echarts.init(
document.getElementById('76595d6d584c4aaa94766a4ab2d6d406'), 'white', {renderer: 'canvas'});
var option_76595d6d584c4aaa94766a4ab2d6d406 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"color": [
"#c23531",
"#2f4554",
"#61a0a8",
"#d48265",
"#749f83",
"#ca8622",
"#bda29a",
"#6e7074",
"#546570",
"#c4ccd3",
"#f05b72",
"#ef5b9c",
"#f47920",
"#905a3d",
"#fab27b",
"#2a5caa",
"#444693",
"#726930",
"#b2d235",
"#6d8346",
"#ac6767",
"#1d953f",
"#6950a1",
"#918597"
],
"series": [
{
"type": "bar",
"name": "\u6cbb\u6108\u7387",
"legendHoverLink": true,
"data": [
9.06,
92.83,
97.61,
96.59,
94.02,
97.37,
96.85,
95.04,
96.94,
98.03,
98.63,
97.47,
98.16,
98.72,
98.02,
98.18,
98.83,
98.81,
99.43,
98.68,
99.09,
96.28,
98.08,
100.0,
99.4,
98.97,
99.69,
99.89,
93.38,
99.19,
99.48,
98.64,
99.47,
100.0
],
"showBackground": false,
"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": "\u6b7b\u4ea1\u7387",
"legendHoverLink": true,
"data": [
3.08,
0.31,
1.77,
0.33,
0.16,
0.07,
0.29,
0.55,
0.48,
0.84,
0.0,
0.76,
1.0,
0.26,
1.67,
0.73,
0.47,
0.0,
0.38,
0.0,
0.79,
3.19,
0.0,
0.0,
0.6,
1.03,
0.31,
0.11,
6.62,
0.81,
0.52,
1.36,
0.53,
0.0
],
"showBackground": false,
"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": [
"\u6cbb\u6108\u7387",
"\u6b7b\u4ea1\u7387"
],
"selected": {
"\u6cbb\u6108\u7387": true,
"\u6b7b\u4ea1\u7387": true
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
"show": true,
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"showContent": true,
"alwaysShowContent": false,
"showDelay": 0,
"hideDelay": 100,
"textStyle": {
"fontSize": 14
},
"borderWidth": 0,
"padding": 5
},
"xAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
},
"data": [
"\u53f0\u6e7e",
"\u5e7f\u4e1c",
"\u9999\u6e2f",
"\u4e0a\u6d77",
"\u798f\u5efa",
"\u6d59\u6c5f",
"\u56db\u5ddd",
"\u4e91\u5357",
"\u9655\u897f",
"\u5317\u4eac",
"\u6c5f\u82cf",
"\u5929\u6d25",
"\u91cd\u5e86",
"\u5185\u8499\u53e4",
"\u6cb3\u5357",
"\u5e7f\u897f",
"\u8fbd\u5b81",
"\u5c71\u897f",
"\u6e56\u5357",
"\u5b81\u590f",
"\u5c71\u4e1c",
"\u6d77\u5357",
"\u6fb3\u95e8",
"\u897f\u85cf",
"\u5b89\u5fbd",
"\u7518\u8083",
"\u65b0\u7586",
"\u6c5f\u897f",
"\u6e56\u5317",
"\u9ed1\u9f99\u6c5f",
"\u5409\u6797",
"\u8d35\u5dde",
"\u6cb3\u5317",
"\u9752\u6d77"
]
}
],
"yAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
}
}
],
"title": [
{
"text": "\u75ab\u60c5\u6cbb\u6108\u7387\u548c\u6b7b\u4ea1\u7387\u60c5\u51b5",
"padding": 5,
"itemGap": 10
}
]
};
chart_76595d6d584c4aaa94766a4ab2d6d406.setOption(option_76595d6d584c4aaa94766a4ab2d6d406);
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/summer502/yiqing_pyecharts.git
git@gitee.com:summer502/yiqing_pyecharts.git
summer502
yiqing_pyecharts
yiqing_pyecharts
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385