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:'12/06/2023',y:[10.60,10.60,10.20,10.20]},{ x:'12/07/2023',y:[9.18,9.18,9.18,9.18]},{ x:'12/08/2023',y:[8.27,9.50,8.27,8.85]},{ x:'12/11/2023',y:[8.85,9.27,8.85,9.10]},{ x:'12/12/2023',y:[9.15,9.18,8.92,8.92]},{ x:'12/18/2023',y:[8.80,8.83,8.63,8.72]},{ x:'12/19/2023',y:[8.67,8.91,8.57,8.81]},{ x:'01/10/2024',y:[8.72,8.84,8.61,8.62]},{ x:'01/11/2024',y:[8.63,8.70,8.50,8.53]},{ x:'01/12/2024',y:[8.45,8.45,8.35,8.36]},{ x:'01/15/2024',y:[8.36,8.55,8.36,8.50]},{ x:'01/16/2024',y:[8.51,8.58,8.38,8.39]},{ x:'01/17/2024',y:[8.39,8.40,8.08,8.08]},{ x:'01/18/2024',y:[8.08,8.24,8.06,8.11]},{ x:'01/19/2024',y:[8.20,8.25,8.10,8.22]},{ x:'01/22/2024',y:[8.22,8.28,8.18,8.18]},{ x:'01/23/2024',y:[8.25,8.31,8.10,8.17]},{ x:'01/24/2024',y:[8.15,8.35,8.15,8.34]},{ x:'01/25/2024',y:[8.40,8.40,8.22,8.24]},{ x:'01/26/2024',y:[8.24,8.31,8.10,8.11]},{ x:'01/29/2024',y:[8.09,8.17,8.09,8.14]},{ x:'01/30/2024',y:[8.17,8.17,8.08,8.08]},{ x:'01/31/2024',y:[8.08,8.15,8.04,8.05]},{ x:'02/01/2024',y:[8.13,8.13,8.03,8.04]},{ x:'02/02/2024',y:[8.06,8.06,8.01,8.01]},{ x:'02/05/2024',y:[8.02,8.03,7.75,7.80]},{ x:'02/15/2024',y:[7.80,7.98,7.80,7.90]},{ x:'02/16/2024',y:[7.88,8.16,7.88,8.16]},{ x:'02/19/2024',y:[8.20,8.86,8.20,8.73]},{ x:'02/20/2024',y:[8.80,8.80,8.56,8.75]},{ x:'02/21/2024',y:[8.75,8.86,8.66,8.68]},{ x:'02/22/2024',y:[8.70,8.78,8.24,8.55]},{ x:'02/23/2024',y:[8.55,8.55,8.31,8.31]},{ x:'02/26/2024',y:[8.31,8.55,8.31,8.39]},{ x:'02/27/2024',y:[8.41,8.42,8.24,8.25]},{ x:'02/29/2024',y:[8.25,8.39,8.15,8.22]},{ x:'03/01/2024',y:[8.33,8.33,8.16,8.25]},{ x:'03/04/2024',y:[8.27,8.32,8.16,8.17]},{ x:'03/05/2024',y:[8.17,8.36,8.17,8.22]},{ x:'03/06/2024',y:[8.25,8.32,8.19,8.24]},{ x:'03/07/2024',y:[8.30,9.06,8.23,9.06]},{ x:'03/08/2024',y:[9.50,9.96,9.25,9.55]},{ x:'03/11/2024',y:[9.57,9.69,8.71,8.79]},{ x:'03/12/2024',y:[8.62,9.40,8.62,8.87]},{ x:'03/13/2024',y:[7.99,7.99,7.99,7.99]},{ x:'03/14/2024',y:[7.20,7.20,7.20,7.20]},{ x:'03/15/2024',y:[6.48,6.48,6.48,6.48]},{ x:'03/18/2024',y:[5.84,5.84,5.84,5.84]},{ x:'03/19/2024',y:[5.26,5.26,5.26,5.26]},{ x:'03/20/2024',y:[4.74,4.74,4.74,4.74]},{ x:'03/21/2024',y:[4.27,5.21,4.27,5.21]},{ x:'03/22/2024',y:[4.69,5.21,4.69,4.95]},{ x:'03/25/2024',y:[4.90,4.90,4.80,4.80]},{ x:'03/26/2024',y:[5.28,5.28,5.28,5.28]},{ x:'03/27/2024',y:[5.80,5.80,5.28,5.80]},{ x:'03/28/2024',y:[5.81,6.38,5.81,6.38]},{ x:'03/29/2024',y:[6.88,6.88,5.83,6.20]},{ x:'04/01/2024',y:[6.50,6.50,5.58,5.62]},{ x:'04/02/2024',y:[5.06,5.06,5.06,5.06]},{ x:'04/03/2024',y:[4.56,4.56,4.56,4.56]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2358 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());