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

[GitHub] cylweb86 opened a new issue #8675: echarts最新版 label 设置backgroundColor的问题\n会有两个背景图

cylweb86 opened a new issue #8675: echarts最新版 label 设置backgroundColor的问题\n会有两个背景图
URL: https://github.com/apache/incubator-echarts/issues/8675
 
 
        label: {
                       show: true,
                       position: 'top',
                       distance: 12,
                       align: 'center',
                       formatter: function (params) {
                           let val = params.data.value + '元';
                           //return `{x|${val}}` + `\n(${params.data.rate})`;
                           return `{x|${val}\n(${params.data.rate})}`
                       },
                       rich: {
                           x: {
                               height: 50,
                               width: 100,
                               backgroundColor: {
                                   image: './textbg.png',
                               }
                           }
                       },
   
                   },
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org