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:'01/22/2024',y:[43.10,43.10,43.04,43.09]},{ x:'01/23/2024',y:[43.21,43.22,43.10,43.22]},{ x:'01/24/2024',y:[43.15,43.18,43.08,43.08]},{ x:'01/25/2024',y:[43.08,43.08,42.92,42.99]},{ x:'01/26/2024',y:[43.02,43.05,43.02,43.03]},{ x:'01/29/2024',y:[43.17,43.17,43.11,43.11]},{ x:'01/30/2024',y:[43.31,43.31,43.24,43.25]},{ x:'01/31/2024',y:[43.48,43.64,43.48,43.64]},{ x:'02/01/2024',y:[43.31,43.43,43.31,43.41]},{ x:'02/02/2024',y:[43.68,43.68,43.56,43.60]},{ x:'02/05/2024',y:[43.74,43.94,43.74,43.91]},{ x:'02/15/2024',y:[43.91,43.91,43.67,43.76]},{ x:'02/16/2024',y:[44.11,44.14,44.04,44.09]},{ x:'02/19/2024',y:[43.99,44.08,43.91,44.08]},{ x:'02/20/2024',y:[44.01,44.10,44.01,44.08]},{ x:'02/21/2024',y:[44.06,44.08,44.06,44.08]},{ x:'02/22/2024',y:[44.26,44.28,44.20,44.26]},{ x:'02/23/2024',y:[44.71,44.80,44.71,44.80]},{ x:'02/26/2024',y:[44.77,44.77,44.72,44.77]},{ x:'02/27/2024',y:[44.69,44.78,44.66,44.78]},{ x:'02/29/2024',y:[44.66,44.78,44.66,44.78]},{ x:'03/01/2024',y:[44.70,44.77,44.70,44.72]},{ x:'03/04/2024',y:[44.84,44.84,44.67,44.68]},{ x:'03/05/2024',y:[44.63,44.63,44.55,44.63]},{ x:'03/06/2024',y:[44.18,44.32,44.18,44.32]},{ x:'03/07/2024',y:[44.22,44.31,44.15,44.31]},{ x:'03/08/2024',y:[44.40,44.40,44.29,44.34]},{ x:'03/11/2024',y:[44.23,44.27,44.18,44.20]},{ x:'03/12/2024',y:[44.33,44.40,44.31,44.36]},{ x:'03/13/2024',y:[44.52,44.60,44.51,44.59]},{ x:'03/14/2024',y:[44.67,44.74,44.67,44.72]},{ x:'03/15/2024',y:[44.56,44.70,44.56,44.69]},{ 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]} ] }], 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());