You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by n ss!w <mr...@qq.com> on 2020/10/29 05:15:35 UTC

回复: 柱状图原点从负开始而不是0

请阅读相关文档: https://echarts.apache.org/zh/option.html#yAxis
希望能找到你想要的~




------------------&nbsp;原始邮件&nbsp;------------------
发件人: "Ovilia"<oviliazhang@gmail.com&gt;; 
发送时间: 2020年10月29日(星期四) 中午11:38
收件人: "dev"<dev@echarts.apache.org&gt;; "zhouyating"<zhouyating@mastercom.cn&gt;; 
主题: Re: 柱状图原点从负开始而不是0



Hi,


It is advised to use English in the mailing&nbsp;list to let more people understand and help
you faster.


By default, the minimum value of an axis is calculated based on the minimum of data,
so in your case it's negative. You may set it to 0 by setting `yAxis.min` to be 0.


Hope that helps.


Thanks

Ovilia






On Wed, Oct 28, 2020 at 10:33 PM zhouyating@mastercom.cn <zhouyating@mastercom.cn&gt; wrote:

 非常急,就是这个柱状图的y轴能不能不从0开始呀,不知道设置哪个属性呢,求帮助
 

 zhouyating@mastercom.cn