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:'04/26/2024',y:[23.41,24.10,23.41,24.10]},{ x:'04/29/2024',y:[24.09,24.88,23.88,24.58]},{ x:'04/30/2024',y:[24.45,24.80,24.40,24.42]},{ x:'05/02/2024',y:[24.28,24.79,24.13,24.79]},{ x:'05/03/2024',y:[25.06,25.19,24.87,24.99]},{ x:'05/06/2024',y:[25.19,25.36,24.83,24.85]},{ x:'05/07/2024',y:[24.91,25.10,24.78,25.10]},{ x:'05/08/2024',y:[25.04,25.10,24.73,24.83]},{ x:'05/09/2024',y:[24.80,25.05,24.75,24.85]},{ x:'05/10/2024',y:[25.10,25.21,24.65,25.05]},{ x:'05/13/2024',y:[24.76,24.85,24.36,24.81]},{ x:'05/14/2024',y:[24.77,24.80,24.40,24.45]},{ x:'05/15/2024',y:[24.45,24.65,24.25,24.36]},{ x:'05/16/2024',y:[24.30,24.76,24.11,24.67]},{ x:'05/17/2024',y:[24.65,24.91,24.53,24.60]},{ x:'05/20/2024',y:[25.56,25.76,25.31,25.47]},{ x:'05/21/2024',y:[25.36,25.40,25.13,25.36]},{ x:'05/22/2024',y:[25.30,25.46,25.12,25.40]},{ x:'05/23/2024',y:[25.20,25.21,24.80,24.83]},{ x:'05/24/2024',y:[24.51,24.90,24.40,24.40]},{ x:'06/11/2024',y:[23.61,23.67,22.86,22.93]},{ x:'06/12/2024',y:[22.94,23.14,22.87,22.95]},{ x:'06/13/2024',y:[23.00,23.16,22.83,22.83]},{ x:'06/14/2024',y:[22.78,22.92,22.45,22.92]},{ x:'06/17/2024',y:[23.05,23.13,22.78,22.95]},{ x:'06/18/2024',y:[23.09,23.19,22.92,23.01]},{ x:'06/19/2024',y:[23.07,23.22,22.89,23.06]},{ x:'06/20/2024',y:[23.11,23.26,22.90,22.93]},{ x:'06/21/2024',y:[22.82,23.00,22.29,22.48]},{ x:'06/24/2024',y:[22.45,22.95,22.15,22.85]},{ x:'06/25/2024',y:[22.82,22.88,22.63,22.80]},{ x:'06/26/2024',y:[22.57,22.67,22.42,22.42]},{ x:'06/27/2024',y:[22.57,22.64,22.21,22.43]},{ x:'06/28/2024',y:[22.38,22.75,22.33,22.64]},{ x:'07/01/2024',y:[22.42,22.52,22.14,22.40]},{ x:'07/02/2024',y:[22.42,23.06,22.40,23.00]},{ x:'07/03/2024',y:[22.97,23.10,22.77,22.92]},{ x:'07/04/2024',y:[23.03,23.29,22.84,22.84]},{ x:'07/05/2024',y:[22.81,22.96,21.94,22.05]},{ x:'07/12/2024',y:[22.96,23.16,22.90,23.13]},{ x:'07/15/2024',y:[23.13,23.37,23.00,23.26]},{ x:'07/16/2024',y:[23.14,23.38,23.11,23.27]},{ x:'07/17/2024',y:[23.38,23.63,23.17,23.48]},{ x:'07/18/2024',y:[23.61,23.88,23.50,23.83]},{ x:'07/19/2024',y:[23.68,23.90,23.37,23.79]},{ x:'07/22/2024',y:[24.01,24.19,23.36,23.40]},{ x:'07/23/2024',y:[23.63,23.68,23.31,23.31]},{ x:'07/26/2024',y:[22.66,22.66,21.96,22.08]},{ x:'07/29/2024',y:[22.21,22.24,21.87,22.14]},{ x:'07/30/2024',y:[21.94,21.95,21.43,21.46]},{ x:'07/31/2024',y:[21.56,22.46,21.53,22.42]},{ x:'08/01/2024',y:[22.43,22.43,21.96,22.02]},{ x:'08/02/2024',y:[21.70,21.93,21.51,21.70]},{ x:'08/05/2024',y:[21.42,21.92,21.22,21.53]},{ x:'08/06/2024',y:[21.61,21.74,20.82,20.82]},{ x:'08/07/2024',y:[21.01,21.33,20.89,21.33]},{ x:'08/08/2024',y:[20.98,21.46,20.86,21.25]},{ x:'08/09/2024',y:[21.36,21.56,21.25,21.35]},{ x:'08/12/2024',y:[21.22,21.34,21.14,21.25]},{ x:'08/13/2024',y:[21.27,21.29,21.04,21.08]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00655l 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());