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/10/28 05:23:26 UTC

[GitHub] [incubator-echarts] samavedulark edited a comment on issue #11491: Custom Axis lable background color

samavedulark edited a comment on issue #11491: Custom Axis lable background color 
URL: https://github.com/apache/incubator-echarts/issues/11491#issuecomment-546789411
 
 
   Like we have for axisLable color below is the code. Need same for background color too.
   ```js
   axisLabel: {
                         inside: false,
                         textStyle: {
                             color: function (value, index) {
                               console.log(index)
                               if(value === 'A') {
                                 return 'green';
                               } else if(value === 'B') {
                                 return 'blue';
                               } else if (value === 'C')
                               {
                                 return 'black';
                               } else if (value === 'D') {
                                 return 'red';
                               }
                               else if (value === '0') {
                                 return 'white';
                               } else {
                                 return 'black';
                               }
                             }
                           }
                     }
   ```

----------------------------------------------------------------
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