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:'05/23/2023',y:[9.17,9.19,9.13,9.18]},{ x:'05/24/2023',y:[8.99,9.00,8.96,8.99]},{ x:'05/25/2023',y:[8.94,8.97,8.92,8.96]},{ x:'05/26/2023',y:[9.20,9.25,9.19,9.20]},{ x:'05/29/2023',y:[9.04,9.05,8.99,9.03]},{ x:'05/30/2023',y:[9.05,9.14,9.00,9.13]},{ x:'05/31/2023',y:[9.46,9.54,9.45,9.53]},{ x:'06/01/2023',y:[9.70,9.72,9.60,9.64]},{ x:'06/02/2023',y:[9.40,9.40,9.32,9.35]},{ x:'06/05/2023',y:[9.09,9.12,9.03,9.08]},{ x:'06/06/2023',y:[9.15,9.20,9.14,9.17]},{ x:'06/07/2023',y:[9.16,9.25,9.15,9.24]},{ x:'06/08/2023',y:[9.09,9.12,9.07,9.09]},{ x:'06/09/2023',y:[9.24,9.29,9.23,9.27]},{ x:'06/12/2023',y:[9.40,9.50,9.40,9.46]},{ x:'06/13/2023',y:[9.73,9.75,9.70,9.72]},{ x:'06/14/2023',y:[9.48,9.49,9.41,9.42]},{ x:'06/15/2023',y:[9.56,9.64,9.56,9.57]},{ x:'06/16/2023',y:[9.29,9.31,9.26,9.29]},{ x:'06/19/2023',y:[9.22,9.28,9.21,9.26]},{ x:'06/20/2023',y:[9.24,9.28,9.21,9.27]},{ x:'06/21/2023',y:[9.26,9.27,9.19,9.21]},{ x:'06/26/2023',y:[9.40,9.51,9.40,9.47]},{ x:'06/27/2023',y:[9.47,9.49,9.39,9.39]},{ x:'06/28/2023',y:[9.66,9.69,9.62,9.64]},{ x:'06/29/2023',y:[9.47,9.52,9.45,9.51]},{ x:'06/30/2023',y:[9.46,9.46,9.39,9.43]},{ x:'07/03/2023',y:[9.36,9.36,9.32,9.35]},{ x:'07/04/2023',y:[9.42,9.43,9.38,9.40]},{ x:'07/05/2023',y:[9.28,9.32,9.27,9.30]},{ x:'07/06/2023',y:[9.18,9.22,9.16,9.21]},{ x:'07/07/2023',y:[9.20,9.21,9.15,9.16]},{ x:'07/10/2023',y:[8.98,9.01,8.95,9.00]},{ x:'07/11/2023',y:[9.00,9.01,8.98,9.00]},{ x:'07/12/2023',y:[8.83,8.83,8.77,8.81]},{ x:'07/13/2023',y:[8.70,8.70,8.65,8.68]},{ x:'07/14/2023',y:[8.51,8.55,8.51,8.55]},{ x:'07/17/2023',y:[8.77,8.80,8.75,8.80]},{ x:'07/18/2023',y:[8.83,8.83,8.80,8.82]},{ x:'07/19/2023',y:[8.68,8.71,8.66,8.70]},{ x:'07/20/2023',y:[8.71,8.71,8.68,8.70]},{ x:'07/21/2023',y:[8.66,8.66,8.58,8.59]},{ x:'07/24/2023',y:[8.53,8.57,8.52,8.55]},{ x:'07/25/2023',y:[8.33,8.34,8.30,8.32]},{ x:'07/26/2023',y:[8.29,8.32,8.28,8.32]},{ x:'07/27/2023',y:[8.30,8.30,8.26,8.28]},{ x:'07/28/2023',y:[8.26,8.29,8.25,8.28]},{ x:'07/31/2023',y:[8.23,8.23,8.18,8.22]},{ x:'08/01/2023',y:[8.10,8.11,8.08,8.11]},{ x:'08/02/2023',y:[8.06,8.08,8.03,8.07]},{ x:'08/04/2023',y:[8.09,8.12,8.06,8.11]},{ x:'08/07/2023',y:[7.99,8.02,7.97,8.01]},{ x:'08/08/2023',y:[8.05,8.11,8.04,8.11]},{ x:'08/09/2023',y:[8.03,8.06,8.02,8.06]},{ x:'08/10/2023',y:[7.93,7.94,7.90,7.93]},{ x:'08/11/2023',y:[8.04,8.09,8.02,8.08]},{ x:'08/14/2023',y:[8.07,8.15,8.04,8.15]},{ x:'08/15/2023',y:[8.13,8.13,8.08,8.11]},{ x:'08/16/2023',y:[8.21,8.34,8.21,8.34]},{ x:'08/17/2023',y:[8.45,8.47,8.38,8.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00673r 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());