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:'01/17/2023',y:[34.42,34.45,34.40,34.45]},{ x:'01/30/2023',y:[34.18,34.18,34.10,34.15]},{ x:'01/31/2023',y:[34.07,34.07,34.00,34.04]},{ x:'02/01/2023',y:[34.24,34.29,34.20,34.24]},{ x:'02/02/2023',y:[34.18,34.37,34.18,34.35]},{ x:'02/03/2023',y:[34.49,34.49,34.42,34.48]},{ x:'02/06/2023',y:[34.45,34.45,34.00,34.03]},{ x:'02/07/2023',y:[33.84,33.96,33.83,33.96]},{ x:'02/08/2023',y:[33.70,33.79,33.67,33.76]},{ x:'02/09/2023',y:[34.00,34.00,33.89,33.89]},{ x:'02/10/2023',y:[33.55,33.70,33.55,33.70]},{ x:'02/13/2023',y:[33.26,33.44,33.26,33.43]},{ x:'02/14/2023',y:[33.61,33.64,33.60,33.64]},{ x:'02/15/2023',y:[33.59,33.70,33.59,33.70]},{ x:'02/16/2023',y:[32.92,32.94,32.89,32.92]},{ x:'02/17/2023',y:[32.35,32.45,32.35,32.45]},{ x:'02/20/2023',y:[32.63,32.67,32.63,32.64]},{ x:'02/21/2023',y:[32.70,32.70,32.65,32.68]},{ x:'02/22/2023',y:[32.39,32.45,32.39,32.44]},{ x:'02/23/2023',y:[32.42,32.43,32.31,32.36]},{ x:'02/24/2023',y:[32.67,32.78,32.65,32.77]},{ x:'03/01/2023',y:[32.37,32.55,32.37,32.53]},{ x:'03/02/2023',y:[32.25,32.28,32.18,32.28]},{ x:'03/03/2023',y:[32.20,32.28,32.15,32.28]},{ x:'03/06/2023',y:[32.82,32.82,32.76,32.81]},{ x:'03/07/2023',y:[32.66,32.70,32.66,32.70]},{ x:'03/08/2023',y:[32.82,32.82,32.68,32.68]},{ x:'03/09/2023',y:[32.74,32.74,32.73,32.73]},{ x:'03/10/2023',y:[33.06,33.10,33.00,33.07]},{ x:'03/13/2023',y:[33.36,33.36,33.18,33.21]},{ x:'03/14/2023',y:[33.09,33.10,33.01,33.04]},{ x:'03/15/2023',y:[32.78,32.84,32.76,32.83]},{ x:'03/16/2023',y:[33.39,33.47,33.38,33.40]},{ x:'03/17/2023',y:[33.30,33.41,33.30,33.41]},{ x:'03/20/2023',y:[32.87,33.26,32.87,33.24]},{ x:'03/21/2023',y:[33.36,33.41,33.33,33.41]},{ x:'03/22/2023',y:[33.18,33.42,33.18,33.39]},{ x:'03/23/2023',y:[33.54,33.54,33.35,33.35]},{ x:'03/24/2023',y:[33.48,33.48,33.41,33.45]},{ x:'03/27/2023',y:[33.66,33.67,33.62,33.62]},{ x:'03/28/2023',y:[33.09,33.21,33.09,33.19]},{ x:'03/29/2023',y:[32.97,33.20,32.97,33.18]},{ x:'03/30/2023',y:[33.26,33.29,33.26,33.27]},{ x:'03/31/2023',y:[33.32,33.36,33.32,33.36]},{ x:'04/06/2023',y:[34.04,34.04,33.83,33.89]},{ x:'04/07/2023',y:[34.13,34.25,34.12,34.17]},{ x:'04/10/2023',y:[34.30,34.31,34.26,34.26]},{ x:'04/11/2023',y:[34.01,34.12,34.01,34.10]},{ x:'04/12/2023',y:[33.96,34.12,33.96,34.11]},{ x:'04/13/2023',y:[34.06,34.10,34.06,34.09]},{ x:'04/14/2023',y:[33.93,33.95,33.92,33.94]},{ x:'04/17/2023',y:[33.62,33.82,33.62,33.81]},{ x:'04/18/2023',y:[33.39,33.55,33.39,33.54]},{ x:'04/19/2023',y:[33.41,33.61,33.41,33.61]},{ x:'04/20/2023',y:[33.65,33.67,33.65,33.67]},{ x:'04/21/2023',y:[33.75,33.79,33.75,33.79]},{ x:'04/24/2023',y:[33.61,33.73,33.61,33.71]},{ x:'04/25/2023',y:[33.98,34.02,33.98,34.00]},{ x:'04/26/2023',y:[34.35,34.35,34.29,34.34]},{ x:'04/27/2023',y:[34.19,34.24,34.18,34.19]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00799b 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());