elephantme commented on issue #8848: 4.1.0版本双坐标轴绘柱状图bug
URL: 
https://github.com/apache/incubator-echarts/issues/8848#issuecomment-421232207
 
 
   @Ovilia 当设置scale为true时,坐标轴下方溢出了(4.1.0版本)
   
   
![echart-bar](https://user-images.githubusercontent.com/20337682/45530722-aa455400-b81e-11e8-990d-9fd6885ab43a.png)
   
   option配置如下:
   
   ```javascript
   option = {
       "xAxis": {
           "type": "category",
           "axisLabel": {
               "rotate": 45
           }
       },
       "yAxis": {
           "type": "value",
           "scale": true
       },
       "legend": {
           "show": true
       },
       "dataset": {
           "dimensions": [
               {
                   "name": "005",
                   "displayName": "日期"
               },
               {
                   "name": "002",
                   "displayName": "新用户"
               },
               {
                   "name": "003",
                   "displayName": "老用户"
               },
               {
                   "name": "004",
                   "displayName": "主页面用户数"
               },
               {
                   "name": "006",
                   "displayName": "登出用户数"
               }
           ],
           "source": [
               {
                   "002": 30000,
                   "003": 18000,
                   "004": 12300,
                   "006": 23409,
                   "005": "支付电费支付电费支付电费"
               },
               {
                   "002": 32000,
                   "003": 18600,
                   "004": 14400,
                   "006": 25012,
                   "005": "2017-01-02"
               },
               {
                   "002": 23000,
                   "003": 18700,
                   "004": 13400,
                   "006": 13456,
                   "005": "2017-01-03"
               },
               {
                   "002": 24000,
                   "003": 18200,
                   "004": 14500,
                   "006": 13466,
                   "005": "2017-01-04"
               },
               {
                   "002": 14000,
                   "003": 17600,
                   "004": 12800,
                   "006": 15690,
                   "005": "2017-01-05"
               }
           ]
       },
       "series": [
           {
               "key": "002",
               "name": "新用户",
               "type": "bar"
           },
           {
               "key": "003",
               "name": "老用户",
               "stack": "test01",
               "type": "bar"
           },
           {
               "key": "004",
               "name": "主页面用户数",
               "type": "bar"
           },
           {
               "key": "006",
               "name": "登出用户数",
               "type": "bar"
           }
       ],
       "tooltip": {
           "trigger": "axis"
       }
   }
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to