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/08/09 07:14:22 UTC

[GitHub] vadasambar commented on issue #8841: min/max on yAxis for bar charts, makes the bars go outside limits

vadasambar commented on issue #8841: min/max on yAxis for bar charts, makes the bars go outside limits
URL: https://github.com/apache/incubator-echarts/issues/8841#issuecomment-411660742
 
 
   Related: 
   
   If I specify min/max values outside min/max value of data, I see bars for 'bar' type graph. 
   
   ![negative_min_max_bar](https://user-images.githubusercontent.com/34534103/43883696-98be9778-9bd1-11e8-8516-57ed6dccd076.png)
   
   ```
   option = {
       xAxis: {
           type: 'category',
           data: ['Foo', 'Bar', 'Baz']
       },
       yAxis: {
           type: 'value',
           min: -250,
           max: -150
       },
       series: [{
           data: [100, 200, 300],
           type: 'bar'
       }]
   };
   ```
   
   This doesn't happen for line,
   ![negative_min_max_line](https://user-images.githubusercontent.com/34534103/43883785-e2fcc7a6-9bd1-11e8-92f9-d0d09a672f36.png)
   
   ```
   option = {
       xAxis: {
           type: 'category',
           data: ['Foo', 'Bar', 'Baz']
       },
       yAxis: {
           type: 'value',
           min: -250,
           max: -150
       },
       series: [{
           data: [100, 200, 300],
           type: 'line'
       }]
   };
   
   ```
   

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