SingleShadow opened a new issue, #17208:
URL: https://github.com/apache/echarts/issues/17208

   ### Version
   
   5.3.2
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/singleshadow-the-animator/pen/MWQZOWb
   
   ### Steps to Reproduce
   
   options = {
     ...,
   yAxis: [
       {
         type: 'value',
         scale: true,
         name: '¥',  //在前面加个空格就是正常的
         max: 100,
         min: 0,
         boundaryGap: [0.2, 0.2]
       },
       {
         type: 'value',
         scale: true,
         name: '¥',
         max: 1200,
         min: 0,
         alignTicks: true,
         boundaryGap: [0.2, 0.2]
       }
     ],
   ...
   }
   
   ### Current Behavior
   
   
![image](https://user-images.githubusercontent.com/18462822/173340147-c3ce9ba7-9f29-4e5e-b504-be9dd8d6acdd.png)
   
   设置后如上图所示
   
   ### Expected Behavior
   
   
![image](https://user-images.githubusercontent.com/18462822/173340369-7fcfb0f4-b75c-4a38-8fc9-58e65097fa61.png)
   
   正确的行为应该是这样的,我在项目里用的是%,也是同样的行为,所以应该跟符合没有关系,
   options = {
     ...,
   yAxis: [
       {
         type: 'value',
         scale: true,
         name: ' ¥',  //在前面加个空格就是正常的
         max: 100,
         min: 0,
         boundaryGap: [0.2, 0.2]
       },
       {
         type: 'value',
         scale: true,
         name: '¥',
         max: 1200,
         min: 0,
         alignTicks: true,
         boundaryGap: [0.2, 0.2]
       }
     ],
   ...
   }
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser: Chrome 102.0.5005.61
   - 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to