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:'02/10/2023',y:[23.79,23.84,23.69,23.71]},{ x:'02/13/2023',y:[23.79,23.84,23.76,23.78]},{ x:'02/14/2023',y:[23.74,23.77,23.71,23.76]},{ x:'02/15/2023',y:[23.74,23.77,23.60,23.60]},{ x:'02/16/2023',y:[23.45,23.56,23.45,23.50]},{ x:'02/17/2023',y:[23.40,23.43,23.34,23.34]},{ x:'02/20/2023',y:[23.51,23.57,23.50,23.53]},{ x:'02/21/2023',y:[23.51,23.53,23.47,23.49]},{ x:'02/22/2023',y:[23.49,23.49,23.45,23.47]},{ x:'02/23/2023',y:[23.33,23.36,23.32,23.35]},{ x:'02/24/2023',y:[23.32,23.33,23.29,23.31]},{ x:'03/01/2023',y:[23.31,23.41,23.29,23.41]},{ x:'03/02/2023',y:[23.45,23.45,23.38,23.41]},{ x:'03/03/2023',y:[23.46,23.51,23.46,23.47]},{ x:'03/06/2023',y:[23.66,23.68,23.61,23.64]},{ x:'03/07/2023',y:[23.56,23.61,23.52,23.58]},{ x:'03/08/2023',y:[23.15,23.15,23.09,23.12]},{ x:'03/09/2023',y:[23.15,23.17,23.12,23.17]},{ x:'03/10/2023',y:[23.38,23.41,23.31,23.32]},{ x:'03/13/2023',y:[23.92,24.05,23.86,23.96]},{ x:'03/14/2023',y:[24.29,24.32,24.19,24.19]},{ x:'03/15/2023',y:[24.19,24.24,24.16,24.18]},{ x:'03/16/2023',y:[24.33,24.37,24.28,24.35]},{ x:'03/17/2023',y:[24.38,24.55,24.38,24.54]},{ x:'03/20/2023',y:[25.04,25.13,25.01,25.12]},{ x:'03/21/2023',y:[25.17,25.22,25.14,25.17]},{ x:'03/22/2023',y:[24.70,24.71,24.61,24.62]},{ x:'03/23/2023',y:[25.06,25.11,24.99,25.10]},{ x:'03/24/2023',y:[25.29,25.31,25.25,25.26]},{ x:'03/27/2023',y:[25.05,25.12,25.04,25.05]},{ x:'03/28/2023',y:[24.89,24.91,24.85,24.86]},{ x:'03/29/2023',y:[25.02,25.02,24.94,24.95]},{ x:'03/30/2023',y:[24.89,24.92,24.82,24.92]},{ x:'03/31/2023',y:[25.10,25.17,25.10,25.13]},{ x:'04/06/2023',y:[25.51,25.56,25.48,25.54]},{ x:'04/07/2023',y:[25.47,25.47,25.39,25.41]},{ x:'04/10/2023',y:[25.32,25.34,25.19,25.25]},{ x:'04/11/2023',y:[25.21,25.37,25.20,25.37]},{ x:'04/12/2023',y:[25.40,25.59,25.40,25.57]},{ x:'04/13/2023',y:[25.57,25.58,25.53,25.55]},{ x:'04/14/2023',y:[25.83,25.92,25.83,25.85]},{ x:'04/17/2023',y:[25.32,25.40,25.26,25.38]},{ x:'04/18/2023',y:[25.25,25.33,25.22,25.30]},{ x:'04/19/2023',y:[25.38,25.41,25.34,25.36]},{ x:'04/20/2023',y:[25.23,25.27,25.20,25.22]},{ x:'04/21/2023',y:[25.33,25.37,25.29,25.29]},{ x:'04/24/2023',y:[25.11,25.11,25.02,25.02]},{ x:'04/25/2023',y:[25.25,25.28,25.17,25.19]},{ x:'04/26/2023',y:[25.25,25.29,25.22,25.26]},{ x:'04/27/2023',y:[25.17,25.30,25.15,25.27]},{ x:'04/28/2023',y:[25.11,25.17,25.10,25.13]},{ x:'05/02/2023',y:[25.08,25.11,25.06,25.09]},{ x:'05/03/2023',y:[25.47,25.50,25.46,25.47]},{ x:'05/04/2023',y:[25.90,25.94,25.76,25.82]},{ x:'05/05/2023',y:[25.86,25.93,25.83,25.84]},{ x:'05/08/2023',y:[25.48,25.58,25.45,25.55]},{ x:'05/09/2023',y:[25.52,25.60,25.48,25.60]},{ x:'05/10/2023',y:[25.72,25.72,25.60,25.60]},{ x:'05/11/2023',y:[25.70,25.70,25.61,25.63]},{ x:'05/12/2023',y:[25.45,25.45,25.34,25.36]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00635u 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());