Skip to content

Commit

Permalink
多个XY轴图形展示
Browse files Browse the repository at this point in the history
  • Loading branch information
navono committed Jul 28, 2017
1 parent 7bbe4d2 commit d19e82a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions echarts/multipleX.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ let option = {
}
}
}
// x轴显示的方位
// position: 'top'
},
{
type: 'category',
Expand All @@ -63,6 +65,11 @@ let option = {
axisLabel: {
formatter: '{value} °C'
}
// 在哪个grid
// gridIndex: 1

// Y轴翻转
// inverse: true
},
dataZoom: [
{
Expand All @@ -86,6 +93,20 @@ let option = {
filterMode: 'empty'
}
],
// 多幅图形
grid: [
{
left: 50,
right: 50,
height: '35%'
},
{
left: 50,
right: 50,
top: '55%',
height: '35%'
}
],
series: [
{
name: '最高气温',
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</head>
<body>
<div>
<div id="root" style="width: 600px;height:400px;"></div>
<div id="root" style="width: 800px;height:800px;"></div>
</div>
</body>
<!--<script src="node_modules/react/dist/react.js"></script>
Expand Down

0 comments on commit d19e82a

Please sign in to comment.