码迷,mamicode.com
首页 > 其他好文 > 详细

echarts 折线柱形上方显示自定义格式数据

时间:2017-01-09 13:38:53      阅读:432      评论:0      收藏:0      [点我收藏+]

标签:label   att   自定义   char   turn   art   osi   ret   type   

series:[

  {
  name: ‘成单率‘,
  type: ‘line‘,
  data: valueArr2,
  itemStyle: {
  normal: {
    label: {
      show:true,
      position: ‘top‘,
      textStyle: {
      color: ‘#333‘
    },
    formatter: function(params) {
      if(params.value){
        return params.value + ‘%‘ 
      }else{
        return ‘‘;
      }
    }
  },
  color:‘#ee8b3f‘
  }
  }
}

]

 

echarts 折线柱形上方显示自定义格式数据

标签:label   att   自定义   char   turn   art   osi   ret   type   

原文地址:http://www.cnblogs.com/biglion/p/6264801.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!