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