Commit 69ca64e1 by BellCodeEditor

save project

parent c28790b2
Showing with 193 additions and 3 deletions
<!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="3c5343a3052944bdb996cbe7cd3b4cdb" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_3c5343a3052944bdb996cbe7cd3b4cdb = echarts.init(
document.getElementById('3c5343a3052944bdb996cbe7cd3b4cdb'), 'white', {renderer: 'canvas'});
var option_3c5343a3052944bdb996cbe7cd3b4cdb = {
"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": "\u4e0a\u5b66\u65f6\u8fdb\u5973\u5395\u6240\u7684\u6b21\u6570",
"legendHoverLink": true,
"data": [
12345678,
123456789,
23456789,
0
],
"showBackground": false,
"barMinHeight": 0,
"barCategoryGap": "50%",
"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": "\u653e\u5047\u65f6\u8fdb\u5973\u5395\u6240\u7684\u6b21\u6570",
"legendHoverLink": true,
"data": [
99999999999999,
999999999999999999,
99999999999999,
0
],
"showBackground": false,
"barMinHeight": 0,
"barCategoryGap": "50%",
"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": [
"\u4e0a\u5b66\u65f6\u8fdb\u5973\u5395\u6240\u7684\u6b21\u6570",
"\u653e\u5047\u65f6\u8fdb\u5973\u5395\u6240\u7684\u6b21\u6570"
],
"selected": {
"\u4e0a\u5b66\u65f6\u8fdb\u5973\u5395\u6240\u7684\u6b21\u6570": true,
"\u653e\u5047\u65f6\u8fdb\u5973\u5395\u6240\u7684\u6b21\u6570": true
}
}
],
"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": [
"\u6d48\u6d48(\u7537)",
"\u79b9\u67cf\u7537(\u7537)",
"\u5c0f\u667a(\u7537)",
"\u6ce2\u5947"
]
}
],
"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"
}
}
}
]
};
chart_3c5343a3052944bdb996cbe7cd3b4cdb.setOption(option_3c5343a3052944bdb996cbe7cd3b4cdb);
</script>
</body>
</html>
...@@ -3,10 +3,10 @@ from pyecharts.charts import Bar ...@@ -3,10 +3,10 @@ from pyecharts.charts import Bar
subjects = ["浈浈(男)", "禹柏男(男)", "小智(男)", "波奇"] subjects = ["浈浈(男)", "禹柏男(男)", "小智(男)", "波奇"]
scores1 = [12345678, 123456789, 23456789,0 ] # 期中成绩 scores1 = [12345678, 123456789, 23456789,0 ] # 期中成绩
scores2 = [99999999999999, 999999999999999999, 99999999999999, 0] # 期末成绩 scores2 = [99999999999999, 999999999999999999, 99999999999999, 0] # 期末成绩
b=Ber() b=Bar()
b.add_xaxis(subjects) b.add_xaxis(subjects)
b.add_yaxis("上学时进女厕所的次数"scores1,ber_width=40) b.add_yaxis("上学时进女厕所的次数",scores1,category_gap="50%")
b.add_yaxis("放假时进女厕所的次数"scores2,ber_width=40) b.add_yaxis("放假时进女厕所的次数",scores2,category_gap="50%")
b.render("analysis.html") b.render("analysis.html")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment