DataSrc:T241b: Difference between revisions
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
|tablearea=bottom | |tablearea=bottom | ||
|class=sortable wikitable smwtable | |class=sortable wikitable smwtable | ||
}} | |||
{{#vardefine: t241b | | |||
[ | |||
["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] | |||
] | |||
}} | |||
{{#echarts: | |||
width=1000px | | |||
height=750px | | |||
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: {{#var:t241b}} | |||
}, | |||
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' } | |||
} | |||
] | |||
} | |||
}} | }} |
Revision as of 14:48, 28 March 2025