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:'12/12/2023',y:[43.05,43.05,42.00,42.00]},{ x:'12/18/2023',y:[40.90,41.05,40.70,40.75]},{ x:'12/19/2023',y:[40.70,40.75,40.35,40.75]},{ x:'01/10/2024',y:[39.05,39.10,39.05,39.10]},{ x:'01/11/2024',y:[39.10,39.65,38.95,39.15]},{ x:'01/12/2024',y:[39.80,40.20,39.80,39.95]},{ x:'01/15/2024',y:[40.05,40.45,40.00,40.45]},{ x:'01/16/2024',y:[40.95,40.95,40.10,40.30]},{ x:'01/17/2024',y:[40.00,40.20,39.55,39.80]},{ x:'01/18/2024',y:[39.70,39.70,39.10,39.10]},{ x:'01/19/2024',y:[39.30,39.45,39.00,39.45]},{ x:'01/22/2024',y:[39.05,39.20,38.10,39.00]},{ x:'01/23/2024',y:[38.90,39.35,38.90,39.05]},{ x:'01/24/2024',y:[39.05,39.05,38.90,38.90]},{ x:'01/25/2024',y:[38.95,39.30,38.95,39.30]},{ x:'01/26/2024',y:[39.30,39.30,38.90,38.95]},{ x:'01/29/2024',y:[38.90,38.95,38.70,38.80]},{ x:'01/30/2024',y:[39.50,39.50,38.80,38.85]},{ x:'01/31/2024',y:[38.85,38.85,38.85,38.85]},{ x:'02/01/2024',y:[38.60,39.25,38.60,39.20]},{ x:'02/02/2024',y:[38.50,39.15,38.40,38.80]},{ x:'02/05/2024',y:[38.60,38.70,38.50,38.50]},{ x:'02/15/2024',y:[40.20,40.20,39.00,39.20]},{ x:'02/16/2024',y:[38.95,39.30,38.75,39.10]},{ x:'02/19/2024',y:[39.70,39.70,39.15,39.30]},{ x:'02/20/2024',y:[39.15,39.35,39.00,39.05]},{ x:'02/21/2024',y:[39.15,39.35,39.00,39.25]},{ x:'02/22/2024',y:[39.20,39.20,39.00,39.10]},{ x:'02/23/2024',y:[38.95,39.00,38.70,39.00]},{ x:'02/26/2024',y:[39.00,39.00,38.65,38.90]},{ x:'02/27/2024',y:[38.85,38.85,38.30,38.35]},{ x:'02/29/2024',y:[38.50,38.50,38.40,38.45]},{ x:'03/01/2024',y:[38.45,38.70,38.45,38.50]},{ x:'03/04/2024',y:[38.60,38.60,38.05,38.30]},{ x:'03/05/2024',y:[38.15,38.55,38.05,38.10]},{ x:'03/06/2024',y:[38.40,39.95,38.40,38.65]},{ x:'03/07/2024',y:[38.65,38.90,38.20,38.50]},{ x:'03/08/2024',y:[38.70,38.80,38.00,38.00]},{ x:'03/11/2024',y:[38.00,38.00,36.90,37.00]},{ x:'03/12/2024',y:[37.10,37.40,35.75,36.10]},{ x:'03/13/2024',y:[36.10,36.10,35.15,35.15]},{ x:'03/14/2024',y:[35.15,35.15,34.20,34.35]},{ x:'03/15/2024',y:[34.90,34.90,33.00,33.00]},{ x:'03/18/2024',y:[33.00,33.45,33.00,33.20]},{ x:'03/19/2024',y:[33.05,33.05,32.50,32.70]},{ x:'03/20/2024',y:[32.50,32.50,32.00,32.15]},{ x:'03/21/2024',y:[32.45,34.70,32.45,33.95]},{ x:'03/22/2024',y:[35.00,36.95,34.60,36.35]},{ x:'03/25/2024',y:[36.35,38.95,36.35,37.60]},{ x:'03/26/2024',y:[37.45,38.20,36.20,36.20]},{ x:'03/27/2024',y:[36.10,36.10,35.20,35.25]},{ x:'03/28/2024',y:[35.15,35.30,34.60,34.60]},{ x:'03/29/2024',y:[34.70,34.70,34.40,34.55]},{ x:'04/01/2024',y:[34.55,34.55,34.05,34.05]},{ x:'04/02/2024',y:[34.30,34.55,34.25,34.55]},{ x:'04/03/2024',y:[34.40,34.40,34.10,34.10]},{ x:'04/08/2024',y:[34.00,34.00,33.50,33.55]},{ x:'04/09/2024',y:[33.00,33.40,33.00,33.40]},{ x:'04/10/2024',y:[33.35,33.70,33.35,33.60]},{ x:'04/11/2024',y:[33.80,36.20,33.65,35.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5245 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());