function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'01/22/2024',y:[14.90,15.00,14.90,15.00]},{ x:'01/23/2024',y:[14.15,15.25,14.15,15.10]},{ x:'01/24/2024',y:[15.10,15.40,14.65,15.00]},{ x:'01/25/2024',y:[14.90,15.00,14.90,15.00]},{ x:'01/26/2024',y:[15.10,15.10,15.10,15.10]},{ x:'01/29/2024',y:[15.05,15.05,14.60,14.75]},{ x:'01/30/2024',y:[14.80,14.85,14.80,14.85]},{ x:'01/31/2024',y:[14.85,14.85,14.80,14.80]},{ x:'02/01/2024',y:[14.75,14.85,14.60,14.60]},{ x:'02/02/2024',y:[14.80,14.80,14.80,14.80]},{ x:'02/05/2024',y:[14.90,15.10,14.90,15.05]},{ x:'02/15/2024',y:[15.50,15.50,15.05,15.05]},{ x:'02/16/2024',y:[15.00,15.05,15.00,15.05]},{ x:'02/19/2024',y:[15.05,15.45,15.05,15.25]},{ x:'02/20/2024',y:[15.20,15.20,15.10,15.15]},{ x:'02/21/2024',y:[15.10,15.10,14.95,14.95]},{ x:'02/22/2024',y:[15.45,15.50,15.15,15.30]},{ x:'02/23/2024',y:[15.20,15.40,15.20,15.40]},{ x:'02/26/2024',y:[15.35,15.50,15.35,15.50]},{ x:'02/27/2024',y:[15.50,15.70,15.45,15.70]},{ x:'02/29/2024',y:[15.70,15.85,15.70,15.85]},{ x:'03/01/2024',y:[16.00,16.80,16.00,16.80]},{ x:'03/04/2024',y:[18.45,18.45,18.45,18.45]},{ x:'03/05/2024',y:[20.25,20.25,20.25,20.25]},{ x:'03/06/2024',y:[22.25,22.25,22.25,22.25]},{ x:'03/07/2024',y:[24.45,24.45,22.00,23.95]},{ x:'03/08/2024',y:[26.30,26.30,25.70,26.30]},{ x:'03/11/2024',y:[25.80,25.80,24.55,24.55]},{ x:'03/12/2024',y:[24.55,27.00,24.55,27.00]},{ x:'03/13/2024',y:[28.40,28.40,25.00,25.00]},{ x:'03/14/2024',y:[23.20,25.80,23.20,25.00]},{ x:'03/15/2024',y:[24.60,25.50,24.60,25.35]},{ x:'03/18/2024',y:[25.60,25.60,24.00,25.25]},{ x:'03/19/2024',y:[25.20,25.20,24.20,25.10]},{ x:'03/20/2024',y:[25.30,25.30,25.00,25.00]},{ x:'03/21/2024',y:[25.00,27.50,25.00,27.50]},{ x:'03/22/2024',y:[28.15,29.65,28.15,28.60]},{ x:'03/25/2024',y:[28.90,30.00,28.90,29.10]},{ x:'03/26/2024',y:[29.35,29.35,28.05,28.40]},{ x:'03/27/2024',y:[28.70,28.70,27.60,28.00]},{ x:'03/28/2024',y:[27.35,27.35,27.00,27.05]},{ x:'03/29/2024',y:[25.40,26.00,24.35,24.35]},{ x:'04/01/2024',y:[24.65,24.65,23.30,24.30]},{ x:'04/02/2024',y:[25.45,25.45,23.55,24.35]},{ x:'04/03/2024',y:[24.30,24.30,23.60,23.60]},{ x:'04/08/2024',y:[22.60,22.60,21.25,21.25]},{ x:'04/09/2024',y:[20.60,21.25,20.60,20.75]},{ x:'04/10/2024',y:[21.80,21.80,20.85,21.50]},{ x:'04/11/2024',y:[21.80,23.65,21.80,22.40]},{ x:'04/12/2024',y:[22.00,22.50,22.00,22.00]},{ x:'04/15/2024',y:[22.15,22.15,20.70,20.80]},{ x:'04/16/2024',y:[20.80,20.80,19.60,20.00]},{ x:'04/17/2024',y:[20.20,21.55,20.20,21.45]},{ x:'04/18/2024',y:[21.40,21.80,21.40,21.80]},{ x:'04/19/2024',y:[22.15,22.50,22.15,22.30]},{ x:'04/22/2024',y:[22.00,22.00,20.65,21.55]},{ x:'04/23/2024',y:[21.50,21.50,20.50,20.80]},{ x:'04/24/2024',y:[22.20,22.20,21.00,21.70]},{ x:'04/25/2024',y:[21.00,21.05,21.00,21.00]},{ x:'04/26/2024',y:[21.05,21.75,21.00,21.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4943 Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());