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:'11/14/2023',y:[32.00,32.09,32.00,32.02]},{ x:'11/15/2023',y:[32.34,32.39,32.23,32.39]},{ x:'11/16/2023',y:[32.39,32.39,32.11,32.24]},{ x:'11/17/2023',y:[32.22,32.39,32.21,32.38]},{ x:'11/20/2023',y:[32.58,32.58,32.25,32.40]},{ x:'11/21/2023',y:[32.18,32.30,32.09,32.24]},{ x:'11/22/2023',y:[32.32,32.43,32.31,32.36]},{ x:'11/23/2023',y:[32.59,32.63,32.53,32.60]},{ x:'11/24/2023',y:[32.65,32.71,32.60,32.65]},{ x:'11/27/2023',y:[32.65,32.68,32.43,32.52]},{ x:'11/28/2023',y:[32.36,32.41,32.32,32.41]},{ x:'11/29/2023',y:[32.24,32.35,32.23,32.23]},{ x:'11/30/2023',y:[32.16,32.30,32.07,32.30]},{ x:'12/01/2023',y:[32.41,32.50,32.41,32.46]},{ x:'12/04/2023',y:[32.23,32.31,32.10,32.25]},{ x:'12/05/2023',y:[32.03,32.08,31.92,32.03]},{ x:'12/06/2023',y:[32.31,32.49,32.31,32.49]},{ x:'12/07/2023',y:[32.21,32.23,32.06,32.12]},{ x:'12/08/2023',y:[31.82,31.82,31.59,31.59]},{ x:'12/11/2023',y:[32.12,32.18,32.08,32.10]},{ x:'12/12/2023',y:[32.23,32.27,32.05,32.10]},{ x:'12/18/2023',y:[31.39,31.63,31.35,31.60]},{ x:'12/19/2023',y:[31.57,32.10,31.47,31.71]},{ x:'01/10/2024',y:[33.13,33.44,33.13,33.39]},{ x:'01/11/2024',y:[33.84,34.00,33.83,33.92]},{ x:'01/12/2024',y:[34.05,34.05,33.93,34.04]},{ x:'01/15/2024',y:[34.29,34.55,34.29,34.51]},{ x:'01/16/2024',y:[34.40,34.40,34.23,34.29]},{ x:'01/17/2024',y:[34.66,34.77,34.24,34.40]},{ x:'01/18/2024',y:[34.26,34.31,34.10,34.19]},{ x:'01/19/2024',y:[34.32,34.46,34.32,34.40]},{ x:'01/22/2024',y:[34.70,34.81,34.59,34.74]},{ x:'01/23/2024',y:[34.91,35.06,34.70,34.75]},{ x:'01/24/2024',y:[34.68,34.71,34.53,34.62]},{ x:'01/25/2024',y:[34.62,34.69,34.42,34.66]},{ x:'01/26/2024',y:[34.37,34.45,34.18,34.24]},{ x:'01/29/2024',y:[34.48,34.66,34.44,34.55]},{ x:'01/30/2024',y:[34.61,34.68,34.55,34.63]},{ x:'01/31/2024',y:[34.47,34.77,34.44,34.76]},{ x:'02/01/2024',y:[34.64,34.72,34.59,34.66]},{ x:'02/02/2024',y:[34.76,34.88,34.70,34.78]},{ x:'02/05/2024',y:[34.88,35.02,34.81,34.98]},{ x:'02/15/2024',y:[35.45,35.50,35.33,35.49]},{ x:'02/16/2024',y:[35.95,36.16,35.80,36.06]},{ x:'02/19/2024',y:[36.06,36.12,35.92,36.11]},{ x:'02/20/2024',y:[36.16,36.22,35.94,36.03]},{ x:'02/21/2024',y:[35.99,36.04,35.86,35.94]},{ x:'02/22/2024',y:[36.28,36.45,36.28,36.38]},{ x:'02/23/2024',y:[36.44,36.61,36.42,36.61]},{ x:'02/26/2024',y:[36.69,36.80,36.68,36.69]},{ x:'02/27/2024',y:[36.73,36.86,36.61,36.65]},{ x:'02/29/2024',y:[36.55,36.71,36.37,36.70]},{ x:'03/01/2024',y:[36.96,37.15,36.96,37.12]},{ x:'03/04/2024',y:[37.23,37.33,37.15,37.16]},{ x:'03/05/2024',y:[37.08,37.42,37.06,37.40]},{ x:'03/06/2024',y:[37.38,37.54,37.38,37.53]},{ x:'03/07/2024',y:[37.66,37.73,37.32,37.41]},{ x:'03/08/2024',y:[37.28,37.63,37.25,37.39]},{ x:'03/11/2024',y:[36.67,36.72,36.37,36.38]},{ x:'03/12/2024',y:[36.11,36.38,35.98,36.37]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00645 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());