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 2022/04/02 03:21:09 UTC

[GitHub] [echarts] AinneShen opened a new issue #16826: legend.textStyle.width invalid[Bug]

AinneShen opened a new issue #16826:
URL: https://github.com/apache/echarts/issues/16826


   ### Version
   
   e.g. 5.3.0
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/ainneshen/pen/mdpqPjq
   
   ### Steps to Reproduce
   
   nothing
   
   ### Current Behavior
   
   legend.textStyle.width invalid
   ```
   formatter: '{a|{name}}',
   textStyle: {
     rich: {
     a: {
       width: 200,
       color: 'rgba(115, 100, 252, 1)',
     }
   }
   ```
   rich.xx.width invalid too.
   
   ### Expected Behavior
   
   I want rows and columns aligned,like this:
   ![image](https://user-images.githubusercontent.com/23020951/161363942-5429b255-4035-4baf-bc66-0551702c5d55.png)
   
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [echarts] jiawulin001 commented on issue #16826: legend.textStyle.width invalid[Bug]

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #16826:
URL: https://github.com/apache/echarts/issues/16826#issuecomment-1086570601


   Try this instead!
   ```
   formatter: '{a|{name}}{b|}',
   textStyle: {
     rich: {
       a: {
         color: 'rgba(115, 100, 252, 1)',
         fontWeight: 'bold',
         align:'left',
         backgroundColor:'rgba(0,0,0,0.1)',
         width:90
       },
       b:{
         align:'right',
       }
     }
   }
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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