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:'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]},{ x:'07/15/2024',y:[28.10,28.39,28.03,28.34]},{ x:'07/16/2024',y:[28.04,28.24,28.02,28.12]},{ x:'07/17/2024',y:[28.65,28.69,28.37,28.40]},{ x:'07/18/2024',y:[27.68,27.79,27.65,27.79]},{ x:'07/19/2024',y:[27.06,27.11,26.89,27.02]},{ x:'07/22/2024',y:[26.82,26.82,26.60,26.62]},{ x:'07/23/2024',y:[26.63,26.74,26.48,26.50]},{ x:'07/26/2024',y:[25.40,25.65,25.28,25.38]},{ x:'07/29/2024',y:[25.72,25.73,25.52,25.70]},{ x:'07/30/2024',y:[25.38,25.52,25.25,25.49]},{ x:'07/31/2024',y:[25.92,26.16,25.82,26.15]},{ x:'08/01/2024',y:[26.46,26.59,26.30,26.44]},{ x:'08/02/2024',y:[25.99,26.37,25.70,26.27]},{ x:'08/05/2024',y:[25.71,26.14,25.71,25.88]},{ x:'08/06/2024',y:[25.09,25.11,24.76,24.82]},{ x:'08/07/2024',y:[24.60,24.86,24.46,24.82]},{ x:'08/08/2024',y:[24.42,24.56,24.34,24.52]},{ x:'08/09/2024',y:[24.94,25.23,24.92,25.01]},{ x:'08/12/2024',y:[24.86,25.00,24.78,25.00]},{ x:'08/13/2024',y:[25.40,25.46,25.17,25.17]},{ x:'08/14/2024',y:[25.28,25.38,25.04,25.19]},{ x:'08/15/2024',y:[25.02,25.21,24.95,25.18]} ] }], 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());