options= { yAxis: [ { type: 'value', max: (value) => value.max*2, }, { type: 'value', min: (value) => value.max - ((value.max - value.min) * 2), max: (value) => value.max, } ], series: [ { data: [3135, 2301], type: 'bar', yAxisIndex: 0 }, { data: [150, 230], type: 'line', yAxisIndex: 1 } ] };
标签:数据,max,min,value,柱图,yAxisIndex,折线图,type From: https://www.cnblogs.com/snowbxb/p/18373803