You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/24 17:33:24 UTC

[GitHub] [incubator-echarts] 100pah commented on issue #11885: Waterfall chart cannot process negative value as expected

100pah commented on issue #11885: Waterfall chart cannot process negative value as expected
URL: https://github.com/apache/incubator-echarts/issues/11885#issuecomment-568782745
 
 
   `stacked bar` does not support that mix positive and negative value.
   Perhaps we can only use [custom series](https://echarts.apache.org/en/option.html#series-custom) to render this kind of diagram.
   
   But should we support that specify the start points for each bar for this kind of scenario? 
   For example,
   
   ```js
   option = {
       xAxis: {},
       yAxis: {},
       series: [{
           bar: 'bar',
           encode: {
               x: 0,
               // When there are more than one dimensions specified on y,
               // the first dimension indicates the bar start, and the second 
               // indicates bar end.
               y: [1, 2] 
           },
           data: [
              //               bar start, bar end
               ['11-01',      55,            90],
               ['11-02',      65,           120],
               ['11-03',      75,           60],
               ['11-04',      85,           50]
           ]
       }]
   }
   ```
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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