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/02/2023',y:[9.39,9.42,9.36,9.42]},{ x:'03/03/2023',y:[9.33,9.33,9.27,9.27]},{ x:'03/06/2023',y:[9.19,9.22,9.18,9.21]},{ x:'03/07/2023',y:[9.17,9.18,9.16,9.18]},{ x:'03/08/2023',y:[9.17,9.19,9.14,9.15]},{ x:'03/09/2023',y:[9.08,9.08,9.05,9.06]},{ x:'03/10/2023',y:[9.18,9.24,9.15,9.24]},{ x:'03/13/2023',y:[9.42,9.42,9.36,9.38]},{ x:'03/14/2023',y:[9.62,9.65,9.54,9.59]},{ x:'03/15/2023',y:[9.51,9.53,9.48,9.53]},{ x:'03/16/2023',y:[9.65,9.68,9.63,9.64]},{ x:'03/17/2023',y:[9.58,9.58,9.51,9.51]},{ x:'03/20/2023',y:[9.56,9.67,9.56,9.65]},{ x:'03/21/2023',y:[9.57,9.59,9.57,9.59]},{ x:'03/22/2023',y:[9.50,9.50,9.45,9.46]},{ x:'03/23/2023',y:[9.55,9.56,9.50,9.50]},{ x:'03/24/2023',y:[9.56,9.57,9.51,9.52]},{ x:'03/27/2023',y:[9.50,9.50,9.46,9.49]},{ x:'03/28/2023',y:[9.45,9.51,9.45,9.49]},{ x:'03/29/2023',y:[9.42,9.44,9.38,9.38]},{ x:'03/30/2023',y:[9.32,9.34,9.31,9.32]},{ x:'03/31/2023',y:[9.23,9.23,9.18,9.21]},{ x:'04/06/2023',y:[9.38,9.41,9.35,9.41]},{ x:'04/07/2023',y:[9.37,9.37,9.35,9.36]},{ x:'04/10/2023',y:[9.32,9.32,9.30,9.32]},{ x:'04/11/2023',y:[9.27,9.27,9.21,9.22]},{ x:'04/12/2023',y:[9.20,9.20,9.17,9.18]},{ x:'04/13/2023',y:[9.20,9.20,9.18,9.18]},{ x:'04/14/2023',y:[9.15,9.15,9.12,9.13]},{ x:'04/17/2023',y:[9.12,9.13,9.10,9.11]},{ x:'04/18/2023',y:[9.05,9.07,9.03,9.07]},{ x:'04/19/2023',y:[9.07,9.09,9.06,9.08]},{ x:'04/20/2023',y:[9.08,9.09,9.06,9.07]},{ x:'04/21/2023',y:[9.05,9.11,9.05,9.10]},{ x:'04/24/2023',y:[9.07,9.09,9.06,9.09]},{ x:'04/25/2023',y:[9.03,9.07,9.01,9.07]},{ x:'04/26/2023',y:[9.12,9.18,9.11,9.15]},{ x:'04/27/2023',y:[9.18,9.18,9.11,9.12]},{ x:'04/28/2023',y:[9.04,9.05,9.01,9.03]},{ x:'05/02/2023',y:[8.95,8.96,8.91,8.92]},{ x:'05/03/2023',y:[8.97,8.99,8.97,8.99]},{ x:'05/04/2023',y:[9.04,9.05,9.00,9.01]},{ x:'05/05/2023',y:[9.02,9.02,9.00,9.02]},{ x:'05/08/2023',y:[8.91,8.93,8.90,8.93]},{ x:'05/09/2023',y:[8.88,8.88,8.82,8.83]},{ x:'05/10/2023',y:[8.84,8.86,8.83,8.85]},{ x:'05/11/2023',y:[8.85,8.89,8.85,8.86]},{ x:'05/12/2023',y:[8.82,8.84,8.80,8.82]},{ x:'05/15/2023',y:[8.78,8.79,8.75,8.76]},{ x:'05/16/2023',y:[8.72,8.72,8.69,8.71]},{ x:'05/17/2023',y:[8.68,8.68,8.65,8.67]},{ x:'05/18/2023',y:[8.61,8.62,8.55,8.57]},{ x:'05/19/2023',y:[8.54,8.57,8.50,8.57]},{ x:'05/22/2023',y:[8.54,8.55,8.49,8.51]},{ x:'05/23/2023',y:[8.47,8.58,8.44,8.58]},{ x:'05/24/2023',y:[8.59,8.62,8.56,8.57]},{ x:'05/25/2023',y:[8.58,8.62,8.57,8.59]},{ x:'05/26/2023',y:[8.58,8.59,8.55,8.58]},{ x:'05/29/2023',y:[8.50,8.53,8.48,8.51]},{ x:'05/30/2023',y:[8.57,8.58,8.52,8.54]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00641r 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());