option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
toolbox: {
orient: 'vertical',
left: 'auto',
feature: {
magicType: {
type: ["line", "bar","stack"]
},
saveAsImage: {},
}
},
legend: {
data: ['Student bachelor', 'Student master', 'Student doctorate']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
dataset: {
source: [
[
"entry_date",
"Student bachelor",
"Student master",
"Student doctorate"
],
[ "Nov 2023", , 4, ],
[ "Dec 2023", , , ],
[ "Jan 2024", , , ],
[ "Feb 2024", , , ],
[ "Mar 2024", 5, , ],
[ "Apr 2024", 8, 3, ],
[ "May 2024", 20, 5, 2 ],
[ "Jun 2024", 4, 6, ],
[ "Jul 2024", 19, 3, 2 ],
[ "Aug 2024", , 1, ],
[ "Sep 2024", , , ],
[ "Oct 2024", 12, 6, ],
[ "Nov 2024", 18, 13, 1 ]
]
},
xAxis: {
type: 'category'
},
yAxis: {
type: 'value'
},
series: [
{
type: 'bar',
stack: 'total',
emphasis: { focus: 'series' }
},
{
type: 'bar',
stack: 'total',
emphasis: { focus: 'series' }
},
{
type: 'bar',
stack: 'total',
emphasis: { focus: 'series' }
}
]
}