Как создать цветовую схему для начального и конечного стержня водопада?
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
}]
});