chengwubin edited a comment on issue #7412: 双Y轴柱状+折线图,设置yaxis的min、max后柱状图柱条下边界超越X轴 URL: https://github.com/apache/incubator-echarts/issues/7412#issuecomment-356156239 同求: 简单的option: ```js app.title = '坐标轴刻度与标签对齐'; option = { color: ['#3398DB'], tooltip : { trigger: 'axis', axisPointer : { // 坐标轴指示器,坐标轴触发有效 type : 'shadow' // 默认为直线,可选为:'line' | 'shadow' } }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis : [ { type : 'category', data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], axisTick: { alignWithLabel: true } } ], yAxis : [ { type : 'value', min: 20 }, { type : 'value', min: 0 } ], series : [ { name:'直接访问', yAxisIndex: 0, type:'bar', barWidth: '60%', data:[10, 52, 200, 334, 390, 330, 220] }, { name:'直接访问', yAxisIndex: 1, type:'line', barWidth: '0', data:[1], showSymbol: false } ] }; ``` 
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org