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:'03/27/2024',y:[22.71,22.74,22.62,22.72]},{ x:'03/28/2024',y:[22.80,22.95,22.80,22.89]},{ x:'03/29/2024',y:[23.16,23.23,23.15,23.23]},{ x:'04/01/2024',y:[23.45,23.48,23.29,23.41]},{ x:'04/02/2024',y:[23.41,23.57,23.36,23.56]},{ x:'04/03/2024',y:[24.31,24.64,24.27,24.44]},{ x:'04/08/2024',y:[25.02,26.06,24.95,25.82]},{ x:'04/09/2024',y:[25.86,26.10,25.79,25.87]},{ x:'04/10/2024',y:[26.07,26.20,25.96,26.20]},{ x:'04/11/2024',y:[25.81,26.03,25.77,26.00]},{ x:'04/12/2024',y:[26.48,26.85,26.44,26.76]},{ x:'04/15/2024',y:[26.10,26.32,26.02,26.30]},{ x:'04/16/2024',y:[26.91,26.91,26.65,26.80]},{ x:'04/17/2024',y:[26.20,26.30,26.12,26.30]},{ x:'04/18/2024',y:[26.29,26.44,26.13,26.41]},{ x:'04/19/2024',y:[26.26,26.87,26.13,26.25]},{ x:'04/22/2024',y:[26.44,26.44,25.89,26.01]},{ x:'04/23/2024',y:[25.35,25.43,24.93,25.13]},{ x:'04/24/2024',y:[25.26,25.52,25.25,25.41]},{ x:'04/25/2024',y:[25.31,25.37,25.05,25.18]},{ x:'04/26/2024',y:[25.40,25.63,25.33,25.60]},{ x:'04/29/2024',y:[25.22,25.38,25.04,25.31]},{ x:'04/30/2024',y:[25.13,25.21,24.92,24.92]},{ x:'05/02/2024',y:[24.84,24.86,24.59,24.63]},{ x:'05/03/2024',y:[24.74,24.80,24.63,24.74]},{ x:'05/06/2024',y:[24.74,25.01,24.73,24.94]},{ x:'05/07/2024',y:[25.40,25.44,25.25,25.33]},{ x:'05/08/2024',y:[25.25,25.40,25.11,25.37]},{ x:'05/09/2024',y:[25.34,25.55,25.31,25.52]},{ x:'05/10/2024',y:[26.25,26.35,26.15,26.32]},{ x:'05/13/2024',y:[26.05,26.06,25.87,25.93]},{ x:'05/14/2024',y:[26.14,26.34,26.14,26.34]},{ x:'05/15/2024',y:[26.36,26.44,26.34,26.40]},{ x:'05/16/2024',y:[27.48,27.52,27.21,27.27]},{ x:'05/17/2024',y:[27.33,27.35,27.20,27.35]},{ x:'05/20/2024',y:[29.36,29.98,29.36,29.66]},{ x:'05/21/2024',y:[29.68,30.00,28.75,29.15]},{ x:'05/22/2024',y:[29.60,29.71,29.20,29.35]},{ x:'05/23/2024',y:[28.45,28.46,27.95,28.13]},{ x:'05/24/2024',y:[27.80,28.09,27.76,28.08]},{ x:'06/11/2024',y:[27.03,27.21,26.69,26.87]},{ x:'06/12/2024',y:[26.86,27.09,26.85,27.03]},{ x:'06/13/2024',y:[27.15,27.15,26.55,26.78]},{ x:'06/14/2024',y:[26.62,26.71,26.50,26.61]},{ x:'06/17/2024',y:[26.97,27.05,26.78,26.83]},{ x:'06/18/2024',y:[27.21,27.21,26.98,27.04]},{ x:'06/19/2024',y:[27.04,27.09,26.94,27.02]},{ x:'06/20/2024',y:[27.38,27.90,27.38,27.90]},{ x:'06/21/2024',y:[28.20,28.21,27.94,28.09]},{ x:'06/24/2024',y:[26.96,27.17,26.96,27.15]},{ x:'06/25/2024',y:[27.12,27.13,26.86,27.13]},{ x:'06/26/2024',y:[26.50,26.58,26.40,26.55]},{ x:'06/27/2024',y:[26.39,26.46,26.37,26.38]},{ x:'06/28/2024',y:[26.43,26.71,26.42,26.67]},{ x:'07/01/2024',y:[26.67,26.75,26.57,26.62]},{ x:'07/02/2024',y:[26.92,27.02,26.80,26.90]},{ x:'07/03/2024',y:[27.10,27.24,27.05,27.23]},{ x:'07/04/2024',y:[27.89,27.96,27.76,27.79]},{ x:'07/05/2024',y:[27.92,27.98,27.80,27.96]},{ x:'07/12/2024',y:[28.60,28.65,28.45,28.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00738u 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());