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:'11/17/2023',y:[12.87,12.94,12.87,12.91]},{ x:'11/20/2023',y:[12.94,12.96,12.89,12.95]},{ x:'11/21/2023',y:[13.00,13.09,13.00,13.06]},{ x:'11/22/2023',y:[13.05,13.05,12.99,13.02]},{ x:'11/23/2023',y:[13.04,13.08,12.99,13.03]},{ x:'11/24/2023',y:[13.03,13.07,13.03,13.04]},{ x:'11/27/2023',y:[13.04,13.10,13.00,13.00]},{ x:'11/28/2023',y:[13.05,13.15,13.03,13.13]},{ x:'11/29/2023',y:[13.14,13.29,13.14,13.26]},{ x:'11/30/2023',y:[13.27,13.33,13.24,13.31]},{ x:'12/01/2023',y:[13.31,13.31,13.22,13.27]},{ x:'12/04/2023',y:[13.30,13.36,13.30,13.33]},{ x:'12/05/2023',y:[13.30,13.30,13.23,13.30]},{ x:'12/06/2023',y:[13.32,13.37,13.31,13.34]},{ x:'12/07/2023',y:[13.36,13.36,13.30,13.30]},{ x:'12/08/2023',y:[13.36,13.42,13.36,13.39]},{ x:'12/11/2023',y:[13.42,13.44,13.39,13.43]},{ x:'12/12/2023',y:[13.48,13.56,13.48,13.52]},{ x:'12/18/2023',y:[13.90,13.94,13.83,13.91]},{ x:'12/19/2023',y:[13.88,13.88,13.69,13.81]},{ x:'01/10/2024',y:[13.68,13.68,13.60,13.65]},{ x:'01/11/2024',y:[13.65,13.70,13.65,13.68]},{ x:'01/12/2024',y:[13.67,13.73,13.65,13.71]},{ x:'01/15/2024',y:[13.74,13.83,13.74,13.82]},{ x:'01/16/2024',y:[13.79,13.79,13.67,13.69]},{ x:'01/17/2024',y:[13.68,13.68,13.52,13.54]},{ x:'01/18/2024',y:[13.54,13.61,13.47,13.61]},{ x:'01/19/2024',y:[13.66,13.71,13.62,13.70]},{ x:'01/22/2024',y:[13.71,13.75,13.71,13.75]},{ x:'01/23/2024',y:[13.75,13.81,13.75,13.80]},{ x:'01/24/2024',y:[13.81,13.93,13.81,13.88]},{ x:'01/25/2024',y:[13.92,13.93,13.85,13.88]},{ x:'01/26/2024',y:[13.86,13.86,13.77,13.78]},{ x:'01/29/2024',y:[13.78,13.90,13.77,13.90]},{ x:'01/30/2024',y:[13.90,13.93,13.88,13.90]},{ x:'01/31/2024',y:[13.88,13.88,13.80,13.86]},{ x:'02/01/2024',y:[13.85,13.85,13.79,13.81]},{ x:'02/02/2024',y:[13.81,13.81,13.76,13.77]},{ x:'02/05/2024',y:[13.70,13.76,13.65,13.75]},{ x:'02/15/2024',y:[13.78,13.81,13.71,13.78]},{ x:'02/16/2024',y:[13.78,13.80,13.74,13.77]},{ x:'02/19/2024',y:[13.77,13.87,13.76,13.87]},{ x:'02/20/2024',y:[13.89,14.06,13.89,14.05]},{ x:'02/21/2024',y:[14.05,14.14,14.02,14.10]},{ x:'02/22/2024',y:[14.11,14.32,14.11,14.30]},{ x:'02/23/2024',y:[14.33,14.38,14.30,14.31]},{ x:'02/26/2024',y:[14.31,14.45,14.30,14.44]},{ x:'02/27/2024',y:[14.37,14.43,14.24,14.34]},{ x:'02/29/2024',y:[14.31,14.39,14.30,14.37]},{ x:'03/01/2024',y:[14.37,14.45,14.34,14.40]},{ x:'03/04/2024',y:[14.40,14.58,14.40,14.58]},{ x:'03/05/2024',y:[14.58,14.71,14.57,14.71]},{ x:'03/06/2024',y:[14.65,14.84,14.64,14.82]},{ x:'03/07/2024',y:[14.86,15.20,14.86,15.18]},{ x:'03/08/2024',y:[15.23,15.59,15.18,15.36]},{ x:'03/11/2024',y:[15.32,15.39,15.23,15.30]},{ x:'03/12/2024',y:[15.30,15.75,15.30,15.73]},{ x:'03/13/2024',y:[15.80,16.07,15.80,16.06]},{ x:'03/14/2024',y:[16.06,16.08,15.65,15.74]},{ x:'03/15/2024',y:[15.62,15.67,15.46,15.46]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00900 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());