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/11/04 11:28:38 UTC
[GitHub] lsy9202 commented on issue #6447: 请问是否支持多grid多yAxis的图表?
lsy9202 commented on issue #6447: 请问是否支持多grid多yAxis的图表?
URL: https://github.com/apache/incubator-echarts/issues/6447#issuecomment-435661719
遇到了同样问题。
option = {
grid:[{
height:"40%"
},{
height:"40%",
bottom:"20px"
}],
xAxis: [{
type: 'category',
gridIndex:0,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},{
type: 'category',
gridIndex:1,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
}],
yAxis: [{
type: 'value',
gridIndex:0
},{
type:'value',
gridIndex:0,
position:'right'
},{
type: 'value',
gridIndex:1
},{
type:'value',
gridIndex:1,
position:'right'
}],
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
xAxisIndex:0,
yAxisIndex:0
},{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
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