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:'10/18/2023',y:[14.70,14.70,14.52,14.52]},{ x:'10/19/2023',y:[14.50,14.57,14.47,14.53]},{ x:'10/20/2023',y:[14.49,14.58,14.40,14.54]},{ x:'10/23/2023',y:[14.46,14.46,14.34,14.34]},{ x:'10/24/2023',y:[14.33,14.37,14.21,14.37]},{ x:'10/25/2023',y:[14.43,14.50,14.43,14.44]},{ x:'10/26/2023',y:[14.14,14.18,14.07,14.07]},{ x:'10/27/2023',y:[14.14,14.17,14.12,14.13]},{ x:'10/30/2023',y:[14.14,14.23,14.14,14.17]},{ x:'10/31/2023',y:[14.18,14.22,13.95,13.95]},{ x:'11/01/2023',y:[14.06,14.07,13.96,14.05]},{ x:'11/02/2023',y:[14.29,14.41,14.29,14.40]},{ x:'11/03/2023',y:[14.48,14.55,14.47,14.53]},{ x:'11/06/2023',y:[14.67,14.76,14.65,14.68]},{ x:'11/07/2023',y:[14.67,14.72,14.64,14.67]},{ x:'11/08/2023',y:[14.69,14.82,14.68,14.78]},{ x:'11/09/2023',y:[14.74,14.82,14.73,14.82]},{ x:'11/10/2023',y:[14.74,14.76,14.69,14.73]},{ x:'11/13/2023',y:[14.97,15.02,14.94,14.96]},{ x:'11/14/2023',y:[15.00,15.03,14.97,15.00]},{ x:'11/15/2023',y:[15.10,15.26,15.10,15.17]},{ x:'11/16/2023',y:[14.53,14.55,14.40,14.46]},{ x:'11/17/2023',y:[14.46,14.54,14.45,14.53]},{ x:'11/20/2023',y:[14.53,14.56,14.48,14.52]},{ x:'11/21/2023',y:[14.62,14.71,14.62,14.69]},{ x:'11/22/2023',y:[14.59,14.65,14.58,14.61]},{ x:'11/23/2023',y:[14.63,14.65,14.55,14.59]},{ x:'11/24/2023',y:[14.63,14.67,14.62,14.63]},{ x:'11/27/2023',y:[14.63,14.66,14.45,14.46]},{ x:'11/28/2023',y:[14.46,14.69,14.46,14.66]},{ x:'11/29/2023',y:[14.66,14.76,14.66,14.68]},{ x:'11/30/2023',y:[14.72,14.72,14.63,14.70]},{ x:'12/01/2023',y:[14.66,14.73,14.64,14.72]},{ x:'12/04/2023',y:[14.77,14.80,14.68,14.70]},{ x:'12/05/2023',y:[14.61,14.61,14.53,14.61]},{ x:'12/06/2023',y:[14.61,14.73,14.61,14.64]},{ x:'12/07/2023',y:[14.62,14.65,14.58,14.59]},{ x:'12/08/2023',y:[14.73,14.76,14.72,14.72]},{ x:'12/11/2023',y:[14.73,14.77,14.72,14.75]},{ x:'12/12/2023',y:[14.84,14.85,14.74,14.76]},{ x:'12/18/2023',y:[15.00,15.05,14.93,15.03]},{ x:'12/19/2023',y:[15.00,15.00,14.88,14.95]},{ x:'01/10/2024',y:[14.78,14.84,14.78,14.82]},{ x:'01/11/2024',y:[14.83,14.90,14.82,14.89]},{ x:'01/12/2024',y:[14.79,14.91,14.79,14.86]},{ x:'01/15/2024',y:[14.96,14.98,14.88,14.92]},{ x:'01/16/2024',y:[14.79,14.85,14.74,14.78]},{ x:'01/17/2024',y:[14.73,14.75,14.58,14.60]},{ x:'01/18/2024',y:[14.65,14.70,14.60,14.64]},{ x:'01/19/2024',y:[14.97,15.09,14.92,15.09]},{ x:'01/22/2024',y:[15.21,15.30,15.21,15.24]},{ x:'01/23/2024',y:[15.27,15.31,15.24,15.29]},{ x:'01/24/2024',y:[15.31,15.34,15.26,15.28]},{ x:'01/25/2024',y:[15.36,15.41,15.33,15.40]},{ x:'01/26/2024',y:[15.37,15.39,15.30,15.32]},{ x:'01/29/2024',y:[15.35,15.44,15.32,15.43]},{ x:'01/30/2024',y:[15.43,15.51,15.43,15.47]},{ x:'01/31/2024',y:[15.39,15.40,15.32,15.33]},{ x:'02/01/2024',y:[15.29,15.30,15.21,15.29]},{ x:'02/02/2024',y:[15.36,15.43,15.36,15.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());