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:'09/19/2023',y:[5.00,5.01,4.95,4.96]},{ x:'09/20/2023',y:[4.90,4.90,4.81,4.82]},{ x:'09/21/2023',y:[4.75,4.75,4.70,4.71]},{ x:'09/22/2023',y:[4.71,4.83,4.71,4.83]},{ x:'09/25/2023',y:[4.83,4.92,4.83,4.88]},{ x:'09/26/2023',y:[4.85,4.85,4.80,4.80]},{ x:'09/27/2023',y:[4.78,4.79,4.75,4.77]},{ x:'09/28/2023',y:[4.83,4.84,4.78,4.79]},{ x:'10/02/2023',y:[4.83,4.87,4.83,4.86]},{ x:'10/03/2023',y:[4.92,4.98,4.90,4.90]},{ x:'10/04/2023',y:[4.84,4.90,4.84,4.89]},{ x:'10/05/2023',y:[4.94,4.99,4.94,4.97]},{ x:'10/06/2023',y:[5.00,5.00,4.93,4.95]},{ x:'10/11/2023',y:[4.99,5.09,4.99,5.06]},{ x:'10/12/2023',y:[5.09,5.11,5.05,5.10]},{ x:'10/13/2023',y:[5.10,5.17,5.10,5.16]},{ x:'10/18/2023',y:[5.05,5.10,5.00,5.03]},{ x:'10/19/2023',y:[5.01,5.14,5.01,5.11]},{ x:'10/20/2023',y:[5.12,5.12,5.07,5.11]},{ x:'10/23/2023',y:[5.01,5.01,4.94,4.95]},{ x:'10/24/2023',y:[4.98,4.98,4.90,4.95]},{ x:'10/25/2023',y:[5.05,5.10,5.04,5.04]},{ x:'10/26/2023',y:[4.90,4.92,4.85,4.85]},{ x:'10/27/2023',y:[4.88,4.89,4.86,4.87]},{ x:'10/30/2023',y:[4.96,5.07,4.96,5.07]},{ x:'10/31/2023',y:[5.07,5.09,4.95,4.95]},{ x:'11/01/2023',y:[5.03,5.04,4.98,5.04]},{ x:'11/02/2023',y:[5.10,5.16,5.10,5.14]},{ x:'11/03/2023',y:[5.18,5.18,5.14,5.16]},{ x:'11/06/2023',y:[5.18,5.28,5.18,5.27]},{ x:'11/07/2023',y:[5.27,5.32,5.27,5.29]},{ x:'11/08/2023',y:[5.28,5.34,5.27,5.34]},{ x:'11/09/2023',y:[5.34,5.40,5.31,5.39]},{ x:'11/10/2023',y:[5.43,5.43,5.31,5.32]},{ x:'11/13/2023',y:[5.43,5.50,5.42,5.44]},{ x:'11/14/2023',y:[5.52,5.53,5.48,5.53]},{ x:'11/15/2023',y:[5.58,5.59,5.46,5.48]},{ x:'11/16/2023',y:[5.47,5.47,5.39,5.39]},{ x:'11/17/2023',y:[5.48,5.54,5.48,5.53]},{ x:'11/20/2023',y:[5.72,5.72,5.50,5.50]},{ x:'11/21/2023',y:[5.55,5.55,5.49,5.50]},{ x:'11/22/2023',y:[5.50,5.59,5.50,5.59]},{ x:'11/23/2023',y:[5.58,5.60,5.52,5.52]},{ x:'11/24/2023',y:[5.54,5.55,5.51,5.51]},{ x:'11/27/2023',y:[5.55,5.57,5.45,5.45]},{ x:'11/28/2023',y:[5.48,5.59,5.48,5.58]},{ x:'11/29/2023',y:[5.58,5.64,5.58,5.64]},{ x:'11/30/2023',y:[5.65,5.67,5.61,5.63]},{ x:'12/01/2023',y:[5.63,5.63,5.60,5.60]},{ x:'12/04/2023',y:[5.63,5.63,5.58,5.58]},{ x:'12/05/2023',y:[5.55,5.55,5.52,5.55]},{ x:'12/06/2023',y:[5.58,5.65,5.58,5.62]},{ x:'12/07/2023',y:[5.59,5.64,5.59,5.64]},{ x:'12/08/2023',y:[5.75,5.75,5.68,5.72]},{ x:'12/11/2023',y:[5.72,5.77,5.72,5.77]},{ x:'12/12/2023',y:[5.82,5.85,5.79,5.81]},{ x:'12/18/2023',y:[5.84,5.90,5.80,5.81]},{ x:'12/19/2023',y:[5.80,5.80,5.70,5.73]},{ x:'01/10/2024',y:[5.80,5.85,5.77,5.85]},{ x:'01/11/2024',y:[5.88,5.97,5.87,5.96]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020031 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());