option = {
title: {
text: 'Stacked Area Chart'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: { backgroundColor: '#6a7985' }
}
},
legend: {
data: ["Status A", "Status B", "Status C"]
},
toolbox: {
feature: { saveAsImage: {} }
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
dataset: {
source: [
["entry_date", "Status A", "Status B", "Status C"],
["2024-01-01", 100, 150, 200],
["2024-02-01", 110, 140, 210],
["2024-03-01", 120, 130, 220],
["2024-04-01", 130, 120, 230]
]
},
xAxis: {
type: 'category',
axisLabel: {
rotate: 0,
interval: 0
}
},
yAxis: {
type: 'value'
},
series: [
{
type: 'line',
stack: 'total',
areaStyle: {},
emphasis: { focus: 'series' }
},
{
type: 'line',
stack: 'total',
areaStyle: {},
emphasis: { focus: 'series' }
},
{
type: 'line',
stack: 'total',
areaStyle: {},
emphasis: { focus: 'series' }
}
]
}