kokkuan opened a new issue #11578: How to have a different color for initial 
bar and end bar of a waterfall chart?
URL: https://github.com/apache/incubator-echarts/issues/11578
 
 
   How to maintain a different color scheme for the initial bar (B/f) and the 
end bar (EBITDA) which is different from the increase or decrease bar?
   
   echartWaterfall.setOption({
        title: {
                text: '',
                subtext: 'RM mil'
        },
        color: ['#D90429', '#2B4384', '#8CD33B', '#1E8EBA', '#23C9D1'],
        legend: {
                x: 'center',
                y: 'top',
                data: ['increase', 'decrease']
        },
        grid: {
                left: '3%',
                right: '4%',
                bottom: '12%',
                containLabel: true
        },
        xAxis: {
                type: 'category',
                interval: 'auto',
                splitLine: { show: false },
                data: ['B/f', 'Revenue', 'Oth Inc', 'COS', 'Staff', 'RentSum', 
'OthRent', 'S&D', 'R&M', 'Utilities', 'Admin', 'EBITDA'],
                //axisLabel: {
                        //rotate: 25
                //}
        },
        yAxis: {
                type: 'value'
        },
        series: [{
                name: 'output',
                type: 'bar',
                stack: 'Changes',
                itemStyle: {
                        normal: {
                                barBorderColor: 'rgba(0,0,0,0)',
                                color: 'rgba(0,0,0,0)'
                        },
                        emphasis: {
                                barBorderColor: 'rgba(0,0,0,0)',
                                color: 'rgba(0,0,0,0)'
                        }
                },
                data: []        // cumulative
        }, {
                name: 'increase',
                type: 'bar',
                stack: 'Changes',
                label: {
                        normal: {
                                show: true,
                                position: 'top'
                        }
                },
                data: []  // increase
        }, {
                name: 'decrease',
                type: 'bar',
                stack: 'Changes',
                label: {
                        normal: {
                                show: true,
                                position: 'bottom'
                        }
                },
                data: []  // decrease
        }]
   });
   
   
   
![waterfall_financial](https://user-images.githubusercontent.com/15305817/68354344-0831ab00-0147-11ea-8445-06b0de516194.PNG)
   
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to