You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/12/17 05:32:02 UTC
[GitHub] Faithforus commented on issue #7039: 多 grid 情况下,每个 grid 有双 y 轴,会报错
Faithforus commented on issue #7039: 多 grid 情况下,每个 grid 有双 y 轴,会报错
URL: https://github.com/apache/incubator-echarts/issues/7039#issuecomment-447727254
请问我的多grid多yaxis数据渲染时,只会对应左边的yaxis,右边的yaxis失效了。这是我哪边弄错了吗?
option = {
xAxis: [{
data: []
},
{
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
gridIndex: 1,
}
],
yAxis: [{
position: 'left',
},
{
position: 'left',
gridIndex: 1
}, {
position: 'right',
min: -1.01,
max: 1.01,
},
{
position: 'right',
min: 84,
max: 930,
gridIndex: '1'
}
],
grid: [{
bottom: '50%'
}, {
top: '50%'
}],
series: [{
type: 'line',
grid: 0,
yAxisIndex: 0,
areaStyle: {},
showSymbol: false,
data: [11, 22, 33, 44, 55, 66, 77]
},
{
type: 'line',
showSymbol: false,
data: [56, 78, 95, 100, 120, 130, 140, 200, 20],
xAxisIndex: '1',
yAxisIndex: '1'
},
{
grid: 0,
type: 'line',
showSymbol: false,
data: [1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, -0.5]
}, {
type: 'bar',
showSymbol: false,
data: [30, 40, 80, 60, 70, 70, 60, 600],
xAxisIndex: '1',
yAxisIndex: '1'
}
]
};
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org