You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/10 11:23:31 UTC

[GitHub] [incubator-echarts] lishaoh opened a new issue #11826: 设置label的position定位问题:数据值有正有负,如何实现正值position设置为top,负值设置为bottom.求教

lishaoh opened a new issue #11826: 设置label的position定位问题:数据值有正有负,如何实现正值position设置为top,负值设置为bottom.求教
URL: https://github.com/apache/incubator-echarts/issues/11826
 
 
   ### What problem does this feature solve?
   label的position可以根据柱状图高度自动显示在合适位置,否则当柱状图高度较低时,label显示不完美
   
   ### What does the proposed API look like?
   {
   name: '柱状图',
   type: 'bar',
   barWidth: 40,
   z: 10,
   data: [1,2,43]
   itemStyle: {
   color: '#00a0e9',
   },
   label: {
   show: true,
   color: '#666',
   position:  val => 1>0? 'top' : 'bottom'
   }
   }
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org