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/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]},{ x:'04/29/2024',y:[31.55,31.77,31.55,31.73]},{ x:'04/30/2024',y:[31.70,31.81,31.63,31.78]},{ x:'05/02/2024',y:[31.75,31.75,31.36,31.39]},{ x:'05/03/2024',y:[31.71,31.96,31.61,31.61]},{ x:'05/06/2024',y:[31.96,31.98,31.74,31.75]},{ x:'05/07/2024',y:[31.88,31.98,31.70,31.82]},{ x:'05/08/2024',y:[31.82,31.95,31.71,31.92]},{ x:'05/09/2024',y:[31.98,32.08,31.92,31.92]},{ x:'05/10/2024',y:[32.08,32.13,31.91,32.08]},{ x:'05/13/2024',y:[32.49,32.49,32.27,32.36]},{ x:'05/14/2024',y:[32.36,32.69,32.36,32.69]},{ x:'05/15/2024',y:[32.81,33.23,32.81,32.93]},{ x:'05/16/2024',y:[32.20,32.43,32.12,32.16]},{ x:'05/17/2024',y:[32.18,32.18,32.02,32.04]},{ x:'05/20/2024',y:[32.08,32.29,31.88,32.06]},{ x:'05/21/2024',y:[32.12,32.12,31.94,32.06]},{ x:'05/22/2024',y:[32.14,32.48,32.14,32.46]},{ x:'05/23/2024',y:[32.59,32.75,32.45,32.72]},{ x:'05/24/2024',y:[32.40,32.73,32.40,32.64]},{ x:'06/11/2024',y:[33.44,33.44,33.21,33.25]},{ x:'06/12/2024',y:[33.29,33.63,33.29,33.61]},{ x:'06/13/2024',y:[34.04,34.37,34.04,34.28]},{ x:'06/14/2024',y:[34.28,34.54,34.20,34.54]},{ x:'06/17/2024',y:[34.54,34.60,34.40,34.49]},{ x:'06/18/2024',y:[34.77,35.03,34.77,35.00]},{ x:'06/19/2024',y:[35.29,35.95,35.29,35.89]},{ x:'06/20/2024',y:[35.90,36.10,35.86,36.10]},{ x:'06/21/2024',y:[35.93,36.11,35.70,36.00]},{ x:'06/24/2024',y:[35.72,35.72,35.22,35.29]},{ x:'06/25/2024',y:[35.05,35.22,34.73,35.22]},{ x:'06/26/2024',y:[35.44,35.65,35.30,35.48]},{ x:'06/27/2024',y:[35.28,35.40,35.15,35.40]},{ x:'06/28/2024',y:[35.41,35.78,35.40,35.71]},{ x:'07/01/2024',y:[35.70,36.00,35.69,35.70]} ] }], 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());