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/01/2022',y:[30.64,31.00,30.64,31.00]},{ x:'03/02/2022',y:[0.00,0.00,0.00,0.00]},{ x:'03/03/2022',y:[31.11,31.11,31.11,31.11]},{ x:'03/04/2022',y:[0.00,0.00,0.00,0.00]},{ x:'03/07/2022',y:[30.00,30.00,29.79,29.86]},{ x:'03/08/2022',y:[29.74,29.74,29.65,29.65]},{ x:'03/09/2022',y:[29.45,29.45,29.45,29.45]},{ x:'03/10/2022',y:[30.16,30.16,30.10,30.10]},{ x:'03/11/2022',y:[30.10,30.10,30.00,30.00]},{ x:'03/14/2022',y:[29.96,30.00,29.80,29.80]},{ x:'03/15/2022',y:[29.72,29.72,29.17,29.17]},{ x:'03/16/2022',y:[29.45,29.45,29.17,29.20]},{ x:'03/17/2022',y:[30.16,30.16,30.16,30.16]},{ x:'03/18/2022',y:[30.16,30.33,30.16,30.24]},{ x:'03/21/2022',y:[30.37,30.45,30.36,30.36]},{ x:'03/22/2022',y:[30.50,30.52,30.50,30.52]},{ x:'03/23/2022',y:[30.78,30.78,30.68,30.68]},{ x:'03/24/2022',y:[30.49,30.59,30.49,30.59]},{ x:'03/25/2022',y:[30.69,30.69,30.59,30.59]},{ x:'03/28/2022',y:[30.10,30.40,30.10,30.40]},{ x:'03/29/2022',y:[30.40,30.40,30.30,30.30]},{ x:'03/30/2022',y:[30.84,30.84,30.84,30.84]},{ x:'03/31/2022',y:[30.84,30.84,30.77,30.77]},{ x:'04/01/2022',y:[0.00,0.00,0.00,0.00]},{ x:'04/06/2022',y:[30.26,30.71,30.26,30.71]},{ x:'04/07/2022',y:[30.55,30.55,30.48,30.48]},{ x:'04/08/2022',y:[30.07,30.23,29.99,30.23]},{ x:'04/11/2022',y:[29.53,29.53,29.51,29.51]},{ x:'04/12/2022',y:[29.70,29.71,29.69,29.71]},{ x:'04/13/2022',y:[29.60,29.94,29.60,29.94]},{ x:'04/14/2022',y:[29.94,29.94,29.94,29.94]},{ x:'04/15/2022',y:[29.72,29.75,29.51,29.60]},{ x:'04/18/2022',y:[29.22,29.60,29.22,29.35]},{ x:'04/19/2022',y:[29.65,29.65,29.25,29.25]},{ x:'04/20/2022',y:[29.25,29.55,29.25,29.55]},{ x:'04/21/2022',y:[29.55,29.72,29.55,29.68]},{ x:'04/22/2022',y:[29.40,29.45,29.33,29.45]},{ x:'04/25/2022',y:[28.85,28.85,28.70,28.83]},{ x:'04/26/2022',y:[28.80,28.86,28.70,28.86]},{ x:'04/27/2022',y:[28.29,28.54,28.25,28.46]},{ x:'04/28/2022',y:[28.05,28.62,28.05,28.62]},{ x:'04/29/2022',y:[28.93,28.93,28.74,28.84]},{ x:'05/03/2022',y:[28.86,29.01,28.77,28.91]},{ x:'05/04/2022',y:[29.06,29.06,28.98,28.98]},{ x:'05/05/2022',y:[29.36,29.36,29.13,29.17]},{ x:'05/06/2022',y:[27.27,28.80,27.27,28.80]},{ x:'05/09/2022',y:[28.34,28.38,28.25,28.30]},{ x:'05/10/2022',y:[28.25,28.25,27.80,28.07]},{ x:'05/11/2022',y:[28.00,28.00,27.83,27.95]},{ x:'05/12/2022',y:[27.72,27.73,27.48,27.50]},{ x:'05/13/2022',y:[27.50,27.66,27.50,27.66]},{ x:'05/16/2022',y:[27.66,28.00,27.66,27.97]},{ x:'05/17/2022',y:[27.95,28.10,27.95,28.10]},{ x:'05/18/2022',y:[28.19,28.55,28.19,28.52]},{ x:'05/19/2022',y:[28.00,28.16,27.95,28.16]},{ x:'05/20/2022',y:[28.42,28.42,28.33,28.42]},{ x:'05/23/2022',y:[28.42,28.55,28.33,28.35]},{ x:'05/24/2022',y:[28.31,28.35,28.24,28.24]},{ x:'05/25/2022',y:[28.20,28.33,28.16,28.31]},{ x:'05/26/2022',y:[28.50,28.50,28.25,28.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0054 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());