Commit a83431f2 by BellCodeEditor

save project

parent 313f9d40
Showing with 9 additions and 9 deletions
......@@ -3,5 +3,5 @@ bar = Bar()
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"]
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
bar.add_yaxis('score',[88, 95, 96, 94, 62, 66, 64, 93, 89])
bar.add_yaxis('成绩单',[88, 95, 96, 94, 62, 66, 64, 93, 89])
bar.render()
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="5f9488f0f1374ef0848e6ad3235f20a7" class="chart-container" style="width:900px; height:500px;"></div>
<div id="6d73caf2858c475fa40772853c49b4e2" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_5f9488f0f1374ef0848e6ad3235f20a7 = echarts.init(
document.getElementById('5f9488f0f1374ef0848e6ad3235f20a7'), 'white', {renderer: 'canvas'});
var option_5f9488f0f1374ef0848e6ad3235f20a7 = {
var chart_6d73caf2858c475fa40772853c49b4e2 = echarts.init(
document.getElementById('6d73caf2858c475fa40772853c49b4e2'), 'white', {renderer: 'canvas'});
var option_6d73caf2858c475fa40772853c49b4e2 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -49,7 +49,7 @@
"series": [
{
"type": "bar",
"name": "score",
"name": "\u6210\u7ee9\u5355",
"legendHoverLink": true,
"data": [
88,
......@@ -83,10 +83,10 @@
"legend": [
{
"data": [
"score"
"\u6210\u7ee9\u5355"
],
"selected": {
"score": true
"\u6210\u7ee9\u5355": true
}
}
],
......@@ -165,7 +165,7 @@
}
]
};
chart_5f9488f0f1374ef0848e6ad3235f20a7.setOption(option_5f9488f0f1374ef0848e6ad3235f20a7);
chart_6d73caf2858c475fa40772853c49b4e2.setOption(option_6d73caf2858c475fa40772853c49b4e2);
</script>
</body>
</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