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/16/2023',y:[7.58,7.58,7.43,7.54]},{ x:'05/17/2023',y:[7.51,7.51,7.30,7.46]},{ x:'05/18/2023',y:[7.35,7.49,7.20,7.36]},{ x:'05/19/2023',y:[7.38,7.39,6.98,7.31]},{ x:'05/22/2023',y:[7.23,7.31,6.96,7.02]},{ x:'05/23/2023',y:[7.02,7.17,6.97,7.17]},{ x:'05/24/2023',y:[7.08,7.18,7.03,7.18]},{ x:'05/25/2023',y:[7.04,7.29,7.00,7.29]},{ x:'05/26/2023',y:[7.28,7.30,7.22,7.28]},{ x:'05/29/2023',y:[7.21,7.34,7.02,7.30]},{ x:'05/30/2023',y:[7.26,7.31,7.07,7.31]},{ x:'05/31/2023',y:[7.35,7.36,7.25,7.35]},{ x:'06/01/2023',y:[7.16,7.41,7.16,7.41]},{ x:'06/02/2023',y:[7.36,7.41,7.31,7.31]},{ x:'06/05/2023',y:[7.35,7.46,7.30,7.41]},{ x:'06/06/2023',y:[7.46,7.95,7.39,7.76]},{ x:'06/07/2023',y:[7.74,7.93,7.72,7.80]},{ x:'06/08/2023',y:[7.80,7.84,7.62,7.68]},{ x:'06/09/2023',y:[7.87,8.00,7.80,7.93]},{ x:'06/12/2023',y:[7.90,8.04,7.78,7.93]},{ x:'06/13/2023',y:[7.76,7.81,7.70,7.76]},{ x:'06/14/2023',y:[7.96,7.96,7.81,7.81]},{ x:'06/15/2023',y:[7.74,7.77,7.70,7.77]},{ x:'06/16/2023',y:[7.75,7.78,7.67,7.77]},{ x:'06/19/2023',y:[7.67,7.72,7.66,7.70]},{ x:'06/20/2023',y:[7.69,7.69,7.57,7.63]},{ x:'06/21/2023',y:[7.59,7.69,7.59,7.60]},{ x:'06/26/2023',y:[7.55,7.55,7.41,7.48]},{ x:'06/27/2023',y:[7.55,7.66,7.55,7.60]},{ x:'06/28/2023',y:[7.56,7.98,7.55,7.81]},{ x:'06/29/2023',y:[7.80,8.10,7.72,8.03]},{ x:'06/30/2023',y:[8.00,8.09,7.81,8.03]},{ x:'07/03/2023',y:[7.82,7.89,7.76,7.89]},{ x:'07/04/2023',y:[7.85,7.89,7.74,7.86]},{ x:'07/05/2023',y:[7.84,7.84,7.70,7.72]},{ x:'07/06/2023',y:[7.62,7.79,7.51,7.75]},{ x:'07/07/2023',y:[7.77,7.77,7.61,7.61]},{ x:'07/10/2023',y:[7.57,7.76,7.35,7.49]},{ x:'07/11/2023',y:[7.52,7.63,7.52,7.57]},{ x:'07/12/2023',y:[7.60,7.67,7.51,7.67]},{ x:'07/13/2023',y:[7.43,7.67,7.43,7.64]},{ x:'07/14/2023',y:[7.68,7.69,7.52,7.68]},{ x:'07/17/2023',y:[7.68,7.68,7.53,7.65]},{ x:'07/18/2023',y:[7.54,7.69,7.54,7.66]},{ x:'07/19/2023',y:[7.65,7.66,7.53,7.53]},{ x:'07/20/2023',y:[7.51,7.53,7.41,7.53]},{ x:'07/21/2023',y:[7.55,7.55,7.47,7.47]},{ x:'07/24/2023',y:[7.50,7.50,7.42,7.42]},{ x:'07/25/2023',y:[7.51,7.51,7.40,7.50]},{ x:'07/26/2023',y:[7.50,7.50,7.41,7.49]},{ x:'07/27/2023',y:[7.50,7.50,7.49,7.50]},{ x:'07/28/2023',y:[7.32,7.50,7.32,7.47]},{ x:'07/31/2023',y:[7.31,7.40,7.28,7.40]},{ x:'08/01/2023',y:[7.30,7.30,7.27,7.27]},{ x:'08/02/2023',y:[7.27,7.42,7.15,7.19]},{ x:'08/04/2023',y:[7.29,7.30,7.14,7.24]},{ x:'08/07/2023',y:[7.24,7.25,7.16,7.25]},{ x:'08/08/2023',y:[7.16,7.24,7.04,7.06]},{ x:'08/09/2023',y:[7.05,7.56,7.00,7.50]},{ x:'08/10/2023',y:[7.45,7.54,7.11,7.54]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6264 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());