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:[28.85,28.98,28.77,28.78]},{ x:'01/23/2024',y:[28.78,28.86,28.75,28.77]},{ x:'01/24/2024',y:[28.79,28.96,28.79,28.92]},{ x:'01/25/2024',y:[29.00,29.03,28.93,29.02]},{ x:'01/26/2024',y:[29.00,29.03,28.99,29.00]},{ x:'01/29/2024',y:[29.02,29.19,29.02,29.15]},{ x:'01/30/2024',y:[29.15,29.17,29.10,29.15]},{ x:'01/31/2024',y:[29.14,29.14,28.92,28.94]},{ x:'02/01/2024',y:[29.01,29.08,28.90,29.05]},{ x:'02/02/2024',y:[29.11,29.18,29.10,29.17]},{ x:'02/05/2024',y:[29.17,29.24,29.10,29.24]},{ x:'02/15/2024',y:[29.98,30.22,29.90,30.10]},{ x:'02/16/2024',y:[30.10,30.16,30.08,30.16]},{ x:'02/19/2024',y:[30.16,30.25,30.13,30.22]},{ x:'02/20/2024',y:[30.22,30.53,30.22,30.52]},{ x:'02/21/2024',y:[30.49,30.50,30.41,30.42]},{ x:'02/22/2024',y:[30.60,30.73,30.60,30.73]},{ x:'02/23/2024',y:[30.88,31.20,30.87,31.08]},{ x:'02/26/2024',y:[31.10,31.30,31.00,31.28]},{ x:'02/27/2024',y:[31.30,31.47,31.15,31.32]},{ x:'02/29/2024',y:[31.21,31.50,31.19,31.48]},{ x:'03/01/2024',y:[31.58,31.64,31.33,31.35]},{ x:'03/04/2024',y:[30.78,30.97,30.75,30.90]},{ x:'03/05/2024',y:[30.91,31.01,30.84,30.98]},{ x:'03/06/2024',y:[30.90,31.24,30.84,31.21]},{ x:'03/07/2024',y:[31.40,31.85,31.40,31.71]},{ x:'03/08/2024',y:[31.95,32.29,31.62,31.96]},{ x:'03/11/2024',y:[31.85,31.99,31.72,31.78]},{ x:'03/12/2024',y:[31.72,31.95,31.70,31.93]},{ x:'03/13/2024',y:[32.07,32.17,31.90,31.98]},{ x:'03/14/2024',y:[31.96,31.98,31.76,31.80]},{ x:'03/15/2024',y:[31.80,31.80,31.54,31.58]},{ x:'03/18/2024',y:[31.58,31.71,31.53,31.71]},{ x:'03/19/2024',y:[31.68,31.70,31.45,31.67]},{ x:'03/20/2024',y:[31.67,31.73,31.47,31.55]},{ x:'03/21/2024',y:[31.75,32.04,31.75,32.04]},{ x:'03/22/2024',y:[32.05,32.20,31.90,32.04]},{ x:'03/25/2024',y:[32.04,32.06,31.90,31.99]},{ x:'03/26/2024',y:[31.99,32.30,31.87,32.02]},{ x:'03/27/2024',y:[32.00,32.12,31.94,32.10]},{ x:'03/28/2024',y:[32.10,32.10,31.75,32.05]},{ x:'03/29/2024',y:[32.05,32.20,32.00,32.16]},{ x:'04/01/2024',y:[32.15,32.31,32.11,32.13]},{ x:'04/02/2024',y:[32.19,32.39,32.19,32.34]},{ x:'04/03/2024',y:[32.25,32.25,32.05,32.22]},{ x:'04/08/2024',y:[32.25,32.29,32.15,32.28]},{ x:'04/09/2024',y:[32.28,32.77,32.28,32.77]},{ x:'04/10/2024',y:[32.72,32.95,32.72,32.87]},{ x:'04/11/2024',y:[32.87,32.87,32.71,32.84]},{ x:'04/12/2024',y:[32.84,32.88,32.69,32.80]},{ x:'04/15/2024',y:[32.60,32.60,32.24,32.24]},{ x:'04/16/2024',y:[31.98,31.98,31.15,31.34]},{ x:'04/17/2024',y:[31.34,31.53,31.34,31.50]},{ x:'04/18/2024',y:[31.45,31.63,31.20,31.63]},{ x:'04/19/2024',y:[31.10,31.10,30.14,30.44]},{ x:'04/22/2024',y:[30.30,30.44,30.16,30.28]},{ x:'04/23/2024',y:[30.62,30.65,30.44,30.53]},{ x:'04/24/2024',y:[31.12,31.30,31.05,31.28]},{ x:'04/25/2024',y:[31.04,31.04,30.80,30.87]},{ x:'04/26/2024',y:[31.20,31.35,31.10,31.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00690 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());