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:[4.50,4.51,4.48,4.49]},{ x:'01/23/2024',y:[4.48,4.50,4.47,4.48]},{ x:'01/24/2024',y:[4.47,4.48,4.46,4.48]},{ x:'01/25/2024',y:[4.45,4.47,4.44,4.44]},{ x:'01/26/2024',y:[4.44,4.46,4.44,4.46]},{ x:'01/29/2024',y:[4.45,4.46,4.41,4.41]},{ x:'01/30/2024',y:[4.42,4.43,4.41,4.42]},{ x:'01/31/2024',y:[4.45,4.47,4.44,4.47]},{ x:'02/01/2024',y:[4.46,4.48,4.45,4.45]},{ x:'02/02/2024',y:[4.42,4.44,4.42,4.42]},{ x:'02/05/2024',y:[4.43,4.45,4.41,4.42]},{ x:'02/15/2024',y:[4.30,4.31,4.27,4.28]},{ x:'02/16/2024',y:[4.28,4.29,4.26,4.28]},{ x:'02/19/2024',y:[4.28,4.29,4.27,4.27]},{ x:'02/20/2024',y:[4.29,4.30,4.26,4.27]},{ x:'02/21/2024',y:[4.28,4.28,4.26,4.27]},{ x:'02/22/2024',y:[4.24,4.26,4.23,4.24]},{ x:'02/23/2024',y:[4.21,4.23,4.20,4.22]},{ x:'02/26/2024',y:[4.22,4.24,4.20,4.20]},{ x:'02/27/2024',y:[4.20,4.26,4.20,4.22]},{ x:'02/29/2024',y:[4.24,4.25,4.20,4.21]},{ x:'03/01/2024',y:[4.21,4.22,4.20,4.22]},{ x:'03/04/2024',y:[4.17,4.18,4.12,4.13]},{ x:'03/05/2024',y:[4.12,4.14,4.10,4.11]},{ x:'03/06/2024',y:[4.15,4.15,4.08,4.09]},{ x:'03/07/2024',y:[4.05,4.07,4.03,4.04]},{ x:'03/08/2024',y:[3.99,4.06,3.97,4.03]},{ x:'03/11/2024',y:[4.05,4.05,4.01,4.04]},{ x:'03/12/2024',y:[4.04,4.05,3.99,3.99]},{ x:'03/13/2024',y:[3.97,4.00,3.96,4.00]},{ x:'03/14/2024',y:[4.00,4.02,3.98,4.00]},{ x:'03/15/2024',y:[4.02,4.03,4.00,4.02]},{ x:'03/18/2024',y:[4.02,4.03,4.00,4.00]},{ x:'03/19/2024',y:[4.02,4.03,3.99,4.00]},{ x:'03/20/2024',y:[4.00,4.03,3.98,4.02]},{ x:'03/21/2024',y:[3.98,3.98,3.93,3.93]},{ x:'03/22/2024',y:[3.93,3.96,3.92,3.93]},{ x:'03/25/2024',y:[3.93,3.95,3.91,3.92]},{ x:'03/26/2024',y:[3.92,3.97,3.89,3.94]},{ x:'03/27/2024',y:[3.94,3.95,3.92,3.93]},{ x:'03/28/2024',y:[3.94,3.97,3.93,3.93]},{ x:'03/29/2024',y:[3.93,3.94,3.92,3.93]},{ x:'04/01/2024',y:[3.92,3.93,3.90,3.93]},{ x:'04/02/2024',y:[3.91,3.91,3.88,3.88]},{ x:'04/03/2024',y:[3.91,3.93,3.89,3.90]},{ x:'04/08/2024',y:[3.90,3.91,3.88,3.88]},{ x:'04/09/2024',y:[3.87,3.88,3.80,3.80]},{ x:'04/10/2024',y:[3.81,3.82,3.80,3.82]},{ x:'04/11/2024',y:[3.84,3.85,3.82,3.83]},{ x:'04/12/2024',y:[3.82,3.84,3.81,3.82]},{ x:'04/15/2024',y:[3.86,3.88,3.85,3.87]},{ x:'04/16/2024',y:[3.91,4.01,3.91,3.99]},{ x:'04/17/2024',y:[3.97,3.97,3.92,3.94]},{ x:'04/18/2024',y:[3.97,3.97,3.91,3.92]},{ x:'04/19/2024',y:[3.99,4.11,3.99,4.06]},{ x:'04/22/2024',y:[4.07,4.09,4.03,4.07]},{ x:'04/23/2024',y:[4.02,4.06,4.02,4.04]},{ x:'04/24/2024',y:[3.99,3.99,3.93,3.93]},{ x:'04/25/2024',y:[3.98,4.00,3.97,4.00]},{ x:'04/26/2024',y:[3.95,3.96,3.91,3.94]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00632r 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());