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/24/2022',y:[35.24,35.24,35.24,35.24]},{ x:'03/25/2022',y:[35.15,35.15,35.15,35.15]},{ x:'03/28/2022',y:[35.17,35.17,35.17,35.17]},{ x:'03/29/2022',y:[35.38,35.38,35.38,35.38]},{ x:'03/30/2022',y:[35.60,35.60,35.60,35.60]},{ x:'03/31/2022',y:[35.90,35.90,35.90,35.90]},{ x:'04/01/2022',y:[36.05,36.05,36.05,36.05]},{ x:'04/06/2022',y:[35.69,35.69,35.69,35.69]},{ x:'04/07/2022',y:[35.54,35.54,35.54,35.54]},{ x:'04/08/2022',y:[35.48,35.48,35.48,35.48]},{ x:'04/11/2022',y:[35.18,35.18,35.18,35.18]},{ x:'04/12/2022',y:[34.77,34.77,34.77,34.77]},{ x:'04/13/2022',y:[34.50,34.50,34.50,34.50]},{ x:'04/14/2022',y:[34.56,34.56,34.56,34.56]},{ x:'04/15/2022',y:[34.40,34.40,34.40,34.40]},{ x:'04/18/2022',y:[34.49,34.49,34.49,34.49]},{ x:'04/19/2022',y:[34.44,34.44,34.44,34.44]},{ x:'04/20/2022',y:[34.13,34.13,34.13,34.13]},{ x:'04/21/2022',y:[34.30,34.30,34.30,34.30]},{ x:'04/22/2022',y:[34.04,34.04,34.04,34.04]},{ x:'04/25/2022',y:[33.77,33.77,33.77,33.77]},{ x:'04/26/2022',y:[33.61,33.61,33.61,33.61]},{ x:'04/27/2022',y:[33.90,33.90,33.90,33.90]},{ x:'04/28/2022',y:[33.78,33.78,33.78,33.78]},{ x:'04/29/2022',y:[33.70,33.70,33.70,33.70]},{ x:'05/03/2022',y:[32.73,32.73,32.71,32.71]},{ x:'05/04/2022',y:[32.80,32.80,32.80,32.80]},{ x:'05/05/2022',y:[33.07,33.07,33.07,33.07]},{ x:'05/06/2022',y:[33.10,33.10,33.10,33.10]},{ x:'05/09/2022',y:[32.64,32.64,32.64,32.64]},{ x:'05/10/2022',y:[32.53,32.53,32.53,32.53]},{ x:'05/11/2022',y:[32.53,32.53,32.53,32.53]},{ x:'05/12/2022',y:[32.96,32.96,32.96,32.96]},{ x:'05/13/2022',y:[32.85,32.85,32.85,32.85]},{ x:'05/16/2022',y:[32.85,32.85,32.85,32.85]},{ x:'05/17/2022',y:[32.78,32.78,32.78,32.78]},{ x:'05/18/2022',y:[32.20,32.20,32.20,32.20]},{ x:'05/19/2022',y:[32.34,32.34,32.34,32.34]},{ x:'05/20/2022',y:[32.07,32.07,32.07,32.07]},{ x:'05/23/2022',y:[32.25,32.33,32.25,32.33]},{ x:'05/24/2022',y:[32.20,32.20,32.20,32.20]},{ x:'05/25/2022',y:[32.37,32.41,32.37,32.41]},{ x:'05/26/2022',y:[32.39,32.39,32.39,32.39]},{ x:'05/27/2022',y:[32.36,32.36,32.36,32.36]},{ x:'05/30/2022',y:[32.30,32.30,32.23,32.23]},{ x:'05/31/2022',y:[32.23,32.30,32.23,32.30]},{ x:'06/01/2022',y:[32.17,32.17,32.17,32.17]},{ x:'06/02/2022',y:[32.26,32.28,32.26,32.28]},{ x:'06/06/2022',y:[32.33,32.33,32.33,32.33]},{ x:'06/07/2022',y:[32.33,32.33,32.33,32.33]},{ x:'06/08/2022',y:[32.37,32.37,32.37,32.37]},{ x:'06/09/2022',y:[32.34,32.34,32.34,32.34]},{ x:'06/10/2022',y:[32.33,32.33,32.33,32.33]},{ x:'06/13/2022',y:[32.33,32.33,32.33,32.33]},{ x:'06/14/2022',y:[32.34,32.34,32.34,32.34]},{ x:'06/15/2022',y:[32.34,32.34,32.34,32.34]},{ x:'06/16/2022',y:[32.34,32.34,32.34,32.34]},{ x:'06/17/2022',y:[32.34,32.34,32.34,32.34]},{ x:'06/20/2022',y:[32.34,32.34,32.34,32.34]},{ x:'06/21/2022',y:[32.34,32.34,32.34,32.34]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00889b 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());