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/17/2023',y:[27.17,27.28,27.17,27.28]},{ x:'04/18/2023',y:[27.48,27.48,27.43,27.43]},{ x:'04/19/2023',y:[27.38,27.40,27.35,27.36]},{ x:'04/20/2023',y:[27.48,27.55,27.47,27.48]},{ x:'04/21/2023',y:[27.49,27.53,27.33,27.37]},{ x:'04/24/2023',y:[27.46,27.54,27.46,27.46]},{ x:'04/25/2023',y:[27.58,27.64,27.46,27.48]},{ x:'04/26/2023',y:[27.36,27.37,27.16,27.28]},{ x:'04/27/2023',y:[27.17,27.30,27.13,27.30]},{ x:'04/28/2023',y:[27.51,27.65,27.51,27.64]},{ x:'05/02/2023',y:[27.80,27.95,27.80,27.90]},{ x:'05/03/2023',y:[27.78,27.78,27.69,27.69]},{ x:'05/04/2023',y:[27.42,27.58,27.42,27.56]},{ x:'05/05/2023',y:[27.56,27.56,27.51,27.56]},{ x:'05/08/2023',y:[27.85,27.93,27.84,27.90]},{ x:'05/09/2023',y:[27.96,28.19,27.96,28.19]},{ x:'05/10/2023',y:[28.19,28.19,28.08,28.10]},{ x:'05/11/2023',y:[28.07,28.07,28.00,28.02]},{ x:'05/12/2023',y:[28.13,28.32,28.13,28.30]},{ x:'05/15/2023',y:[28.39,28.53,28.39,28.53]},{ x:'05/16/2023',y:[28.60,28.68,28.57,28.65]},{ x:'05/17/2023',y:[28.78,28.83,28.78,28.81]},{ x:'05/18/2023',y:[29.02,29.21,29.02,29.21]},{ x:'05/19/2023',y:[29.21,29.33,29.15,29.20]},{ x:'05/22/2023',y:[29.20,29.36,29.19,29.36]},{ x:'05/23/2023',y:[29.53,29.60,29.17,29.22]},{ x:'05/24/2023',y:[29.22,29.24,29.08,29.17]},{ x:'05/25/2023',y:[29.18,29.19,29.06,29.12]},{ x:'05/26/2023',y:[29.17,29.22,29.11,29.15]},{ x:'05/29/2023',y:[29.38,29.39,29.28,29.34]},{ x:'05/30/2023',y:[29.08,29.31,29.05,29.29]},{ x:'05/31/2023',y:[29.09,29.10,28.84,28.85]},{ x:'06/01/2023',y:[29.05,29.20,29.02,29.16]},{ x:'06/02/2023',y:[29.26,29.52,29.26,29.52]},{ x:'06/05/2023',y:[30.00,30.25,29.95,30.25]},{ x:'06/06/2023',y:[30.17,31.00,30.02,31.00]},{ x:'06/07/2023',y:[30.57,30.64,30.04,30.21]},{ x:'06/08/2023',y:[29.94,29.98,29.55,29.69]},{ x:'06/09/2023',y:[30.00,30.11,29.95,30.11]},{ x:'06/12/2023',y:[30.29,30.36,30.18,30.32]},{ x:'06/13/2023',y:[30.46,30.72,30.46,30.65]},{ x:'06/14/2023',y:[30.81,31.16,30.81,31.16]},{ x:'06/15/2023',y:[31.16,31.33,31.08,31.16]},{ x:'06/16/2023',y:[31.01,31.19,30.93,31.19]},{ x:'06/19/2023',y:[31.20,31.28,30.97,31.02]},{ x:'06/20/2023',y:[30.96,31.02,30.80,30.91]},{ x:'06/21/2023',y:[31.04,31.17,30.99,31.14]},{ x:'06/26/2023',y:[30.85,30.85,30.63,30.67]},{ x:'06/27/2023',y:[30.53,30.59,30.41,30.59]},{ x:'06/28/2023',y:[30.79,31.03,30.69,31.03]},{ x:'06/29/2023',y:[31.37,31.39,31.14,31.25]},{ x:'06/30/2023',y:[31.12,31.12,30.90,31.02]},{ x:'07/03/2023',y:[31.39,31.46,31.36,31.46]},{ x:'07/04/2023',y:[31.29,31.36,31.24,31.31]},{ x:'07/05/2023',y:[31.26,31.34,31.20,31.25]},{ x:'07/06/2023',y:[31.11,31.13,30.80,30.93]},{ x:'07/07/2023',y:[30.83,30.88,30.74,30.79]},{ x:'07/10/2023',y:[30.56,30.60,30.36,30.53]},{ x:'07/11/2023',y:[30.54,30.58,30.31,30.37]},{ x:'07/12/2023',y:[30.16,30.20,30.06,30.18]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00645 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());