You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/11/09 13:39:37 UTC

[GitHub] zhuzhiyuan opened a new issue #9377: 当柱状图 开启 yAxis 开启 scale: true 时候,柱子不是从X轴起始的地方开始画的,而是从下面开始

zhuzhiyuan opened a new issue #9377: 当柱状图 开启  yAxis 开启 scale: true 时候,柱子不是从X轴起始的地方开始画的,而是从下面开始
URL: https://github.com/apache/incubator-echarts/issues/9377
 
 
   echart version 3.8.5 
   npm install echarts 安装
   
   option = {"color":["#50A1FD","#59CC76","#F8AC59"],"grid":{"top":"10%","left":"3%","right":"4%","bottom":"70px","containLabel":true},"xAxis":{"name":"时间","axisTick":{"alignWithLabel":true},"type":"category","data":["2018-01","2018-03","2018-04","2018-05","2018-06","2018-07"]},"yAxis":[{"name":"门店复购率","type":"value","scale":true},{"name":"排行率","type":"value","scale":true}],"series":[{"name":"门店评分","data":["4.89","4.99","5.00","5.00","4.79","4.98"],"type":"bar","barMaxWidth":50},{"name":"好评率全国排行","data":["13.38","76.94","99.78","78.38","69.05","41.73"],"type":"line","yAxisIndex":1}]}
   
   效果如下
   ![image](https://user-images.githubusercontent.com/5226445/48265631-f18b4200-e467-11e8-92fa-0b60925ceda6.png)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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