You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "gb853940223 (via GitHub)" <gi...@apache.org> on 2025/08/27 06:46:03 UTC

[I] [Feature] 设置了主次坐标轴后,Y轴的最大值与数据本身的最大值,差距太大 [echarts]

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

   ### What problem does this feature solve?
   
   使用echarts,设置了主次坐标轴,但是发现Y轴上的最大值与数据本身最大值,差距很大。如图,数据本身的最大值是7210,但是左侧Y轴的最大值显示的是14000,导致用户产生数据错误的印象。
   
   <img width="1022" height="450" alt="Image" src="https://github.com/user-attachments/assets/716f99a5-142a-4740-afa3-ec63e329be37" />
   
   ### What does the proposed API look like?
   
   请告诉一个方法,可以在这种情况下,可以减少Y轴最大值与数据真实最大值的配置方式。


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


Re: [I] [Feature] 设置了主次坐标轴后,Y轴的最大值与数据本身的最大值,差距太大 [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #21230:
URL: https://github.com/apache/echarts/issues/21230#issuecomment-3226986836

   @gb853940223 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**
   
   [Feature] After setting the primary and secondary axis, the maximum value of the Y axis is too different from the maximum value of the data itself
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Using echarts, I set the primary and secondary axes, but found that the maximum value on the Y axis is very different from the maximum value of the data itself. As shown in the figure, the maximum value of the data itself is 7210, but the maximum value of the left Y axis shows 14000, causing users to have the impression that the data is wrong.
   
   <img width="1022" height="450" alt="Image" src="https://github.com/user-attachments/assets/716f99a5-142a-4740-afa3-ec63e329be37" />
   ### What does the proposed API look like?
   
   Please tell me a method that can reduce the Y-axis maximum value and the true maximum value of the data in this case.
   </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


Re: [I] [Feature] 设置了主次坐标轴后,Y轴的最大值与数据本身的最大值,差距太大 [echarts]

Posted by "gb853940223 (via GitHub)" <gi...@apache.org>.
gb853940223 commented on issue #21230:
URL: https://github.com/apache/echarts/issues/21230#issuecomment-3232320673

   柱状图对照的是右侧次坐标Y轴,真实数据最大值是31左右,所以图表渲染的右侧次坐标Y轴的最大值是35,这个没有问题。折线图对照的是左侧主坐标Y轴,真实数据最大值是7210,但是图表渲染的左侧主坐标Y轴的最大值是14000,快是7210的2倍了。预期是左侧主坐标Y轴的最大值是7500或者是8000。


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


Re: [I] [Feature] 设置了主次坐标轴后,Y轴的最大值与数据本身的最大值,差距太大 [echarts]

Posted by "Justin-ZS (via GitHub)" <gi...@apache.org>.
Justin-ZS commented on issue #21230:
URL: https://github.com/apache/echarts/issues/21230#issuecomment-3232511715

   是因为你设置了 alignTicks,去掉就行了
   不想去就只能自己算 max


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


Re: [I] [Feature] 设置了主次坐标轴后,Y轴的最大值与数据本身的最大值,差距太大 [echarts]

Posted by "Justin-ZS (via GitHub)" <gi...@apache.org>.
Justin-ZS commented on issue #21230:
URL: https://github.com/apache/echarts/issues/21230#issuecomment-3232290588

   > 数据本身的最大值是 7210
   
   看图表最大值不是超过 12000么


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