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


With regards,
Apache Git Services

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

Reply via email to