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/06/13 11:08:09 UTC

[GitHub] [echarts] SingleShadow opened a new issue, #17208: [Bug] 双y轴数据时,左侧Y轴设置右侧Y轴同名name属性,会导致显示样式错误

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: commits-unsubscribe@echarts.apache.org.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] echarts-bot[bot] commented on issue #17208: [Bug] 双y轴数据时,左侧Y轴设置右侧Y轴同名name属性,会导致显示样式错误

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17208:
URL: https://github.com/apache/echarts/issues/17208#issuecomment-1153782274

   @SingleShadow It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] In the case of double y-axis data, setting the name attribute of the same name of the right Y-axis on the left Y-axis will cause the display style to be incorrect
   
   **BODY**
   
   ### 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: '¥', //It is normal to add a space in front
         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)
   
   After setting, as shown above
   
   ### Expected Behavior
   
   ![image](https://user-images.githubusercontent.com/18462822/173340369-7fcfb0f4-b75c-4a38-8fc9-58e65097fa61.png)
   
   The correct behavior should be like this, I use % in the project, and it is the same behavior, so it should have nothing to do with compliance,
   options = {
     ...,
   yAxis: [
       {
         type: 'value',
         scale: true,
         name: ' ¥', //It is normal to add a space in front
         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_
   </details>


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