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/18/2024',y:[44.45,44.52,44.45,44.52]},{ x:'03/19/2024',y:[44.67,44.73,44.67,44.72]},{ x:'03/20/2024',y:[45.10,45.24,45.10,45.23]},{ x:'03/21/2024',y:[45.79,45.79,45.70,45.75]},{ x:'03/22/2024',y:[46.07,46.23,46.07,46.23]},{ x:'03/25/2024',y:[45.81,45.85,45.53,45.65]},{ x:'03/26/2024',y:[45.52,45.60,45.52,45.58]},{ x:'03/27/2024',y:[45.63,45.82,45.60,45.82]},{ x:'03/28/2024',y:[46.22,46.22,46.11,46.15]},{ x:'03/29/2024',y:[46.42,46.42,46.15,46.15]},{ x:'04/01/2024',y:[46.40,46.42,46.25,46.27]},{ x:'04/02/2024',y:[45.95,45.98,45.85,45.89]},{ x:'04/03/2024',y:[45.60,45.60,45.47,45.47]},{ x:'04/08/2024',y:[45.47,45.47,45.25,45.34]},{ x:'04/09/2024',y:[45.29,45.30,45.27,45.28]},{ x:'04/10/2024',y:[45.29,45.29,45.15,45.22]},{ x:'04/11/2024',y:[45.00,45.00,44.81,44.96]},{ x:'04/12/2024',y:[44.96,45.10,44.96,45.10]},{ x:'04/15/2024',y:[44.67,44.79,44.67,44.77]},{ x:'04/16/2024',y:[44.40,44.55,44.40,44.55]},{ x:'04/17/2024',y:[44.65,44.71,44.65,44.68]},{ x:'04/18/2024',y:[44.55,44.55,44.44,44.45]},{ x:'04/19/2024',y:[44.25,44.31,44.09,44.29]},{ x:'04/22/2024',y:[44.95,45.11,44.93,45.10]},{ x:'04/23/2024',y:[45.35,45.35,45.25,45.25]},{ x:'04/24/2024',y:[45.42,45.55,45.42,45.55]},{ x:'04/25/2024',y:[45.48,45.48,45.39,45.42]},{ x:'04/26/2024',y:[45.05,45.13,45.04,45.08]},{ x:'04/29/2024',y:[45.40,45.41,45.37,45.38]},{ x:'04/30/2024',y:[45.27,45.31,45.23,45.31]},{ x:'05/02/2024',y:[44.90,44.99,44.90,44.97]},{ x:'05/03/2024',y:[45.30,45.30,45.18,45.18]},{ x:'05/06/2024',y:[45.32,45.43,45.32,45.42]},{ x:'05/07/2024',y:[45.59,45.72,45.59,45.68]},{ x:'05/08/2024',y:[45.71,45.80,45.71,45.75]},{ x:'05/09/2024',y:[45.89,45.90,45.87,45.87]},{ x:'05/10/2024',y:[46.42,46.45,46.38,46.42]},{ x:'05/13/2024',y:[46.48,46.51,46.46,46.51]},{ x:'05/14/2024',y:[46.37,46.38,46.37,46.38]},{ x:'05/15/2024',y:[46.42,46.42,46.29,46.29]},{ x:'05/16/2024',y:[46.29,46.72,46.29,46.56]},{ x:'05/17/2024',y:[46.57,46.70,46.57,46.65]},{ x:'05/20/2024',y:[46.90,46.90,46.86,46.90]},{ x:'05/21/2024',y:[46.00,46.77,46.00,46.72]},{ x:'05/22/2024',y:[46.72,46.76,46.72,46.76]},{ x:'05/23/2024',y:[46.48,46.54,46.48,46.52]},{ x:'05/24/2024',y:[46.07,46.07,45.79,45.80]},{ x:'06/11/2024',y:[45.73,45.73,45.70,45.71]},{ x:'06/12/2024',y:[45.65,45.67,45.57,45.67]},{ x:'06/13/2024',y:[45.49,45.52,45.45,45.48]},{ x:'06/14/2024',y:[45.45,45.54,45.45,45.54]},{ x:'06/17/2024',y:[45.43,45.43,45.37,45.40]},{ x:'06/18/2024',y:[45.67,45.74,45.67,45.70]},{ x:'06/19/2024',y:[45.70,45.72,45.69,45.72]},{ x:'06/20/2024',y:[45.69,45.69,45.60,45.68]},{ x:'06/21/2024',y:[46.00,46.06,45.98,46.05]},{ x:'06/24/2024',y:[46.05,46.05,45.90,45.97]},{ x:'06/25/2024',y:[46.15,46.53,46.13,46.53]},{ x:'06/26/2024',y:[46.32,46.32,46.11,46.19]},{ x:'06/27/2024',y:[46.12,46.21,46.12,46.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00668 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());