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/27/2023',y:[12.41,12.44,12.32,12.33]},{ x:'03/28/2023',y:[12.28,12.32,12.12,12.13]},{ x:'03/29/2023',y:[12.20,12.21,11.95,12.03]},{ x:'03/30/2023',y:[12.15,12.18,12.12,12.17]},{ x:'03/31/2023',y:[12.21,12.27,12.18,12.21]},{ x:'04/06/2023',y:[12.12,12.13,12.03,12.10]},{ x:'04/07/2023',y:[12.15,12.21,12.12,12.16]},{ x:'04/10/2023',y:[12.18,12.25,12.17,12.19]},{ x:'04/11/2023',y:[12.19,12.33,12.17,12.32]},{ x:'04/12/2023',y:[12.31,12.31,12.21,12.29]},{ x:'04/13/2023',y:[12.27,12.27,12.11,12.12]},{ x:'04/14/2023',y:[12.18,12.28,12.17,12.27]},{ x:'04/17/2023',y:[12.21,12.30,12.17,12.28]},{ x:'04/18/2023',y:[12.28,12.30,12.18,12.20]},{ x:'04/19/2023',y:[12.19,12.19,12.05,12.06]},{ x:'04/20/2023',y:[12.07,12.07,11.91,11.93]},{ x:'04/21/2023',y:[11.94,11.96,11.69,11.70]},{ x:'04/24/2023',y:[11.64,11.72,11.60,11.69]},{ x:'04/25/2023',y:[11.69,11.69,11.31,11.33]},{ x:'04/26/2023',y:[11.22,11.29,11.13,11.28]},{ x:'04/27/2023',y:[11.25,11.43,11.21,11.34]},{ x:'04/28/2023',y:[11.44,11.52,11.43,11.47]},{ x:'05/02/2023',y:[11.50,11.65,11.43,11.61]},{ x:'05/03/2023',y:[11.52,11.60,11.50,11.59]},{ x:'05/04/2023',y:[11.58,11.62,11.53,11.61]},{ x:'05/05/2023',y:[11.62,11.70,11.59,11.63]},{ x:'05/08/2023',y:[11.75,11.80,11.70,11.71]},{ x:'05/09/2023',y:[11.71,11.71,11.57,11.67]},{ x:'05/10/2023',y:[11.63,11.63,11.50,11.57]},{ x:'05/11/2023',y:[11.57,11.60,11.44,11.44]},{ x:'05/12/2023',y:[11.39,11.47,11.36,11.46]},{ x:'05/15/2023',y:[11.38,11.38,11.29,11.35]},{ x:'05/16/2023',y:[11.45,11.51,11.44,11.47]},{ x:'05/17/2023',y:[11.46,11.60,11.46,11.59]},{ x:'05/18/2023',y:[11.75,11.77,11.68,11.73]},{ x:'05/19/2023',y:[11.82,11.83,11.75,11.80]},{ x:'05/22/2023',y:[11.81,11.83,11.75,11.76]},{ x:'05/23/2023',y:[11.76,11.83,11.74,11.80]},{ x:'05/24/2023',y:[11.76,11.76,11.66,11.73]},{ x:'05/25/2023',y:[11.96,11.98,11.84,11.88]},{ x:'05/26/2023',y:[12.11,12.21,12.10,12.20]},{ x:'05/29/2023',y:[12.39,12.48,12.39,12.41]},{ x:'05/30/2023',y:[12.41,12.43,12.34,12.42]},{ x:'05/31/2023',y:[12.40,12.41,12.27,12.29]},{ x:'06/01/2023',y:[12.22,12.26,12.18,12.25]},{ x:'06/02/2023',y:[12.37,12.41,12.34,12.38]},{ x:'06/05/2023',y:[12.40,12.42,12.35,12.35]},{ x:'06/06/2023',y:[12.36,12.43,12.33,12.41]},{ x:'06/07/2023',y:[12.46,12.63,12.46,12.61]},{ x:'06/08/2023',y:[12.55,12.56,12.38,12.43]},{ x:'06/09/2023',y:[12.50,12.62,12.50,12.59]},{ x:'06/12/2023',y:[12.64,12.73,12.64,12.69]},{ x:'06/13/2023',y:[12.86,13.04,12.86,13.04]},{ x:'06/14/2023',y:[13.01,13.01,12.93,12.94]},{ x:'06/15/2023',y:[12.98,13.13,12.98,13.06]},{ x:'06/16/2023',y:[13.06,13.06,12.95,13.00]},{ x:'06/19/2023',y:[12.96,13.10,12.90,13.06]},{ x:'06/20/2023',y:[13.05,13.09,12.93,13.00]},{ x:'06/21/2023',y:[12.93,12.96,12.84,12.90]},{ x:'06/26/2023',y:[12.82,12.82,12.72,12.77]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00892 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());