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 2019/04/02 06:26:29 UTC

[GitHub] [incubator-echarts] mmmaomao21 opened a new issue #10198: xAxis-axisLabel 是否能提供加入icon功能

mmmaomao21 opened a new issue #10198: xAxis-axisLabel 是否能提供加入icon功能
URL: https://github.com/apache/incubator-echarts/issues/10198
 
 
   ### What problem does this feature solve?
   demo中可以通过rich实现插入图片,想知道是否可能直接插入tag <Icon>,直接插入图标
   axisLabel: {
               formatter: function (value) {
                   return '{' + value + '| }\n{value|' + value + '}';
               },
               margin: 20,
               rich: {
                   value: {
                       lineHeight: 30,
                       align: 'center'
                   },
                   Sunny: {
                       height: 40,
                       align: 'center',
                       backgroundColor: {
                           image: weatherIcons.Sunny
                       }
                   },
                   Cloudy: {
                       height: 40,
                       align: 'center',
                       backgroundColor: {
                           image: weatherIcons.Cloudy
                       }
                   },
                   Showers: {
                       height: 40,
                       align: 'center',
                       backgroundColor: {
                           image: weatherIcons.Showers
                       }
                   }
               }
           }
   ### What does the proposed API look like?
   能够直接插入标签
   
   <!-- 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org