vue echarts 负坐标轴显示正数与正坐标轴对称
xAxis : [{type : 'value',axisLabel:{formatter: function (data) {return (Math.abs(data));}}}],series : [ { name:'iO...
   ·  
 xAxis : [
    {
        type : 'value',
        axisLabel:{
            formatter: function (data) {
                return (Math.abs(data));
            }
        }
    }
],
series : [ { name:'iOS',  type:'bar',  stack: '总量',  label: { normal: { show: true  } },  data:null,    },  { name:'Android',  type:'bar',  stack: '总量',  label: { normal: { show: true,  position: 'left',  formatter: function (value) { return (Math.abs(value.data));  } } },  data:null,   } ]
更多推荐
 


所有评论(0)