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/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]},{ x:'03/18/2024',y:[15.48,15.66,15.43,15.65]},{ x:'03/19/2024',y:[15.61,16.10,15.60,16.08]},{ x:'03/20/2024',y:[16.21,16.48,16.15,16.17]},{ x:'03/21/2024',y:[16.35,16.40,16.14,16.14]},{ x:'03/22/2024',y:[16.10,16.10,15.77,15.89]},{ x:'03/25/2024',y:[15.87,15.94,15.75,15.81]},{ x:'03/26/2024',y:[15.88,15.96,15.51,15.71]},{ x:'03/27/2024',y:[15.76,16.02,15.71,15.97]},{ x:'03/28/2024',y:[16.04,16.16,15.86,15.98]},{ x:'03/29/2024',y:[16.00,16.03,15.82,16.00]},{ x:'04/01/2024',y:[15.92,15.99,15.83,15.85]},{ x:'04/02/2024',y:[15.85,15.96,15.85,15.95]},{ x:'04/03/2024',y:[15.85,15.92,15.80,15.85]},{ x:'04/08/2024',y:[15.85,15.87,15.73,15.81]},{ x:'04/09/2024',y:[15.81,15.93,15.81,15.93]},{ x:'04/10/2024',y:[15.93,16.02,15.92,15.98]},{ x:'04/11/2024',y:[15.89,15.90,15.78,15.88]},{ x:'04/12/2024',y:[15.88,15.96,15.87,15.93]},{ x:'04/15/2024',y:[15.89,15.89,15.75,15.79]},{ x:'04/16/2024',y:[15.68,15.68,15.25,15.36]},{ x:'04/17/2024',y:[15.42,15.53,15.39,15.50]},{ x:'04/18/2024',y:[15.45,15.51,15.35,15.50]},{ x:'04/19/2024',y:[15.34,15.35,14.88,15.10]},{ x:'04/22/2024',y:[15.05,15.25,15.04,15.09]},{ x:'04/23/2024',y:[15.13,15.21,15.06,15.12]},{ x:'04/24/2024',y:[15.25,15.35,15.21,15.33]},{ x:'04/25/2024',y:[15.30,15.36,15.27,15.28]},{ x:'04/26/2024',y:[15.30,15.44,15.30,15.40]} ] }], 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());