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/21/2023',y:[12.92,12.97,12.88,12.89]},{ x:'03/22/2023',y:[13.00,13.11,13.00,13.10]},{ x:'03/23/2023',y:[13.07,13.21,13.07,13.18]},{ x:'03/24/2023',y:[13.24,13.28,13.21,13.28]},{ x:'03/27/2023',y:[13.28,13.28,13.18,13.20]},{ x:'03/28/2023',y:[13.18,13.18,13.03,13.03]},{ x:'03/29/2023',y:[13.09,13.13,13.00,13.08]},{ x:'03/30/2023',y:[13.13,13.19,13.12,13.17]},{ x:'03/31/2023',y:[13.19,13.29,13.18,13.18]},{ x:'04/06/2023',y:[13.09,13.09,12.98,13.04]},{ x:'04/07/2023',y:[13.10,13.10,13.04,13.06]},{ x:'04/10/2023',y:[13.06,13.13,13.06,13.10]},{ x:'04/11/2023',y:[13.10,13.15,13.08,13.13]},{ x:'04/12/2023',y:[13.13,13.15,13.08,13.15]},{ x:'04/13/2023',y:[13.13,13.13,13.01,13.01]},{ x:'04/14/2023',y:[13.11,13.18,13.06,13.16]},{ x:'04/17/2023',y:[13.09,13.09,13.03,13.09]},{ x:'04/18/2023',y:[13.09,13.09,12.98,13.00]},{ x:'04/19/2023',y:[13.00,13.02,12.90,12.90]},{ x:'04/20/2023',y:[12.87,12.92,12.83,12.85]},{ x:'04/21/2023',y:[12.87,12.90,12.73,12.74]},{ x:'04/24/2023',y:[12.70,12.77,12.67,12.72]},{ x:'04/25/2023',y:[12.72,12.72,12.48,12.51]},{ x:'04/26/2023',y:[12.48,12.48,12.39,12.46]},{ x:'04/27/2023',y:[12.46,12.57,12.42,12.52]},{ x:'04/28/2023',y:[12.66,12.70,12.63,12.68]},{ x:'05/02/2023',y:[12.70,12.79,12.65,12.77]},{ x:'05/03/2023',y:[12.75,12.76,12.70,12.76]},{ x:'05/04/2023',y:[12.74,12.79,12.70,12.78]},{ x:'05/05/2023',y:[12.81,12.85,12.77,12.81]},{ x:'05/08/2023',y:[12.91,12.92,12.87,12.88]},{ x:'05/09/2023',y:[12.87,12.90,12.84,12.89]},{ x:'05/10/2023',y:[12.88,12.88,12.74,12.78]},{ x:'05/11/2023',y:[12.80,12.81,12.70,12.71]},{ x:'05/12/2023',y:[12.66,12.72,12.61,12.71]},{ x:'05/15/2023',y:[12.69,12.74,12.68,12.71]},{ x:'05/16/2023',y:[12.81,12.89,12.81,12.87]},{ x:'05/17/2023',y:[12.87,13.01,12.85,13.00]},{ x:'05/18/2023',y:[13.12,13.15,13.09,13.13]},{ x:'05/19/2023',y:[13.16,13.20,13.14,13.17]},{ x:'05/22/2023',y:[13.15,13.20,13.15,13.16]},{ x:'05/23/2023',y:[13.16,13.21,13.15,13.20]},{ x:'05/24/2023',y:[13.14,13.14,13.07,13.13]},{ x:'05/25/2023',y:[13.26,13.32,13.22,13.30]},{ x:'05/26/2023',y:[13.51,13.65,13.51,13.63]},{ x:'05/29/2023',y:[13.79,13.85,13.74,13.77]},{ x:'05/30/2023',y:[13.77,13.84,13.77,13.81]},{ x:'05/31/2023',y:[13.81,13.83,13.67,13.79]},{ x:'06/01/2023',y:[13.68,13.73,13.65,13.68]},{ x:'06/02/2023',y:[13.76,13.93,13.76,13.86]},{ x:'06/05/2023',y:[13.87,13.94,13.86,13.89]},{ x:'06/06/2023',y:[13.89,13.95,13.87,13.90]},{ x:'06/07/2023',y:[13.94,14.11,13.94,14.11]},{ x:'06/08/2023',y:[14.07,14.07,13.87,13.89]},{ x:'06/09/2023',y:[13.96,14.08,13.96,14.05]},{ x:'06/12/2023',y:[14.14,14.27,14.14,14.20]},{ x:'06/13/2023',y:[14.40,14.59,14.35,14.56]},{ x:'06/14/2023',y:[14.50,14.57,14.49,14.55]},{ x:'06/15/2023',y:[14.59,14.74,14.59,14.69]},{ x:'06/16/2023',y:[14.72,14.73,14.59,14.65]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());