1 Star 0 Fork 1

eluxiaoyao/pyecharts_learn

forked from sowhat510/pyecharts_learn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
3.多个纵坐标的柱状图.html 4.51 KB
一键复制 编辑 原始数据 按行查看 历史
Heisenberg 提交于 2021-06-16 12:36 . something new
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Awesome-pyecharts</title>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
</head>
<body>
<div id="985f3d37e1c741568566ecb21e65b816" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_985f3d37e1c741568566ecb21e65b816 = echarts.init(
document.getElementById('985f3d37e1c741568566ecb21e65b816'), 'white', {renderer: 'canvas'});
var option_985f3d37e1c741568566ecb21e65b816 = {
"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": "l2",
"data": [
100,
200,
300,
400,
500,
400,
300
],
"barCategoryGap": "20%",
"label": {
"show": true,
"position": "top",
"margin": 8
}
},
{
"type": "bar",
"name": "l3",
"data": [
300,
400,
500,
400,
300,
200,
100
],
"barCategoryGap": "20%",
"label": {
"show": true,
"position": "top",
"margin": 8
}
}
],
"legend": [
{
"data": [
"l2",
"l3"
],
"selected": {
"l2": true,
"l3": true
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
"show": true,
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"textStyle": {
"fontSize": 14
},
"borderWidth": 0
},
"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": [
"\u661f\u671f\u4e00",
"\u661f\u671f\u4e8c",
"\u661f\u671f\u4e09",
"\u661f\u671f\u56db",
"\u661f\u671f\u4e94",
"\u661f\u671f\u4e03",
"\u661f\u671f\u65e5"
]
}
],
"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": "Bar-\u57fa\u672c\u793a\u4f8b",
"subtext": "\u6211\u662f\u526f\u6807\u9898",
"padding": 5,
"itemGap": 10
}
]
};
chart_985f3d37e1c741568566ecb21e65b816.setOption(option_985f3d37e1c741568566ecb21e65b816);
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eluxiaoyao/pyecharts_learn.git
git@gitee.com:eluxiaoyao/pyecharts_learn.git
eluxiaoyao
pyecharts_learn
pyecharts_learn
master

搜索帮助