option = {
    xAxis: {
        type: 'category'.data: ['Mon'.'Tue'.'Wed'.'Thu'.'Fri'.'Sat'.'Sun']},yAxis: [{
        type: 'value'.max: function(value) {
            if(Math.abs(value.max) > Math.abs(value.min)){
                return (Math.abs(value.max)*1.2).toFixed(2);
            }else{
                return (Math.abs(value.min)*1.2).toFixed(2); }},min: function(value) {
            if(Math.abs(value.max) > Math.abs(value.min)){
                return (-Math.abs(value.max) * 1.2).toFixed(2);
            }else{
                return (-Math.abs(value.min) * 1.2).toFixed(2); }}}, {type: 'value'.max: function(value) {
            if(Math.abs(value.max) > Math.abs(value.min)){
                return (Math.abs(value.max)*1.2).toFixed(2);
            }else{
                return (Math.abs(value.min)*1.2).toFixed(2); }},min: function(value) {
            if(Math.abs(value.max) > Math.abs(value.min)){
                return (-Math.abs(value.max) * 1.2).toFixed(2);
            }else{
                return (-Math.abs(value.min) * 1.2).toFixed(2); }}}].series: [{
        data: [120.200.- 150..80.70.- 110..130].type: 'bar'.yAxisIndex: 1
    },
    {
        data: [120.200.150.80.- 70..110.- 130.].type: 'bar'}}]Copy the code