echart的series中label formatter回调函数使用及样式。

版权声明: https://blog.csdn.net/weixin_41722928/article/details/85265947
 formatter
{
  name: '生物质',
  type: 'bar',
  stack: '能源',
  barWidth: '80%',
  label: {
    normal: {
      show: true,
      position: 'insideRight',
      formatter:function(params){
        if (params.value > 0) {
          return params.value;
        }else{
          return "";
        }
      }
    }
  },

猜你喜欢

转载自blog.csdn.net/weixin_41722928/article/details/85265947