-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
76 lines (68 loc) · 1.74 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
var options = {
series: [{
name: 'stack1',
data: [353859, 240142, 248507, 197859, 157070, 105259, 61603, 37254],
}, {
name: 'stack2',
data: [43265, 476752, 538475, 356135, 336844, 216381, 153045, 113271],
}, {
name: 'stack3',
data: [00033, 154327, 189528, 194166, 114948, 73337, 101496, 49194],
}, {
name: 'amountA',
data: [43265, 476752, 538475, 356135, 336844, 216381, 153045, 113271],
}],
chart: {
type: 'bar',
height: 350,
stacked: true
},
plotOptions: {
bar: {
horizontal: false,
dataLabels: {
total: {
enabled: true,
offsetX: 0,
style: {
fontSize: '13px',
fontWeight: 900
}
}
}
}
},
stroke: {
width: 1,
colors: ['#fff'],
},
title: {
text: '2022-09-21 18:30:03'
},
xaxis: {
categories: ["俏芳華", "連連歡呼", "電訊巴打", "歡欣福星", "柏林探戈", "總理", "同舟共濟", "快益善"]
},
fill: {
opacity: 1
},
legend: {
position: 'top',
horizontalAlign: 'left',
offsetX: 40
},
color: [function ( { value, seriesIndex, dataPointIndex, w }) {
if (dataPointIndex == 43265) {
return "#7E36AF";
} else {
return "#D9534F";
}
}
]
};
var chart = new ApexCharts(document.querySelector("#chart"), options);
chart.render();
chart.updateOptions({
title: {
text: 'new'
}
});