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/04/2023',y:[18.10,18.10,17.75,17.85]},{ x:'10/05/2023',y:[18.05,18.35,18.05,18.20]},{ x:'10/06/2023',y:[18.35,18.35,18.05,18.05]},{ x:'10/11/2023',y:[17.95,18.10,17.70,17.75]},{ x:'10/12/2023',y:[17.90,18.20,17.80,18.15]},{ x:'10/13/2023',y:[18.05,18.35,18.05,18.30]},{ x:'10/18/2023',y:[18.85,20.35,18.75,20.35]},{ x:'10/19/2023',y:[20.70,22.35,20.60,22.35]},{ x:'10/20/2023',y:[24.45,24.55,23.60,24.55]},{ x:'10/23/2023',y:[26.45,27.00,25.90,27.00]},{ x:'10/24/2023',y:[27.00,27.10,24.60,24.90]},{ x:'10/25/2023',y:[25.20,27.35,25.05,27.35]},{ x:'10/26/2023',y:[26.35,28.00,26.30,27.80]},{ x:'10/27/2023',y:[28.00,28.25,26.85,26.85]},{ x:'10/31/2023',y:[26.90,27.00,23.80,23.80]},{ x:'11/01/2023',y:[24.25,25.00,23.80,25.00]},{ x:'11/02/2023',y:[25.90,25.90,25.20,25.30]},{ x:'11/03/2023',y:[25.45,25.60,24.00,24.05]},{ x:'11/06/2023',y:[24.50,25.25,24.50,25.25]},{ x:'11/07/2023',y:[25.35,27.75,25.35,27.75]},{ x:'11/08/2023',y:[27.65,27.65,26.30,26.60]},{ x:'11/09/2023',y:[25.80,26.25,24.45,24.75]},{ x:'11/10/2023',y:[24.55,25.50,22.90,23.60]},{ x:'11/13/2023',y:[24.30,24.75,23.50,24.00]},{ x:'11/14/2023',y:[24.00,24.65,23.50,24.00]},{ x:'11/15/2023',y:[24.25,26.40,24.10,26.40]},{ x:'11/16/2023',y:[27.20,29.00,27.20,29.00]},{ x:'11/17/2023',y:[30.50,30.65,27.80,29.45]},{ x:'11/20/2023',y:[29.60,32.35,29.60,32.35]},{ x:'11/21/2023',y:[33.30,34.30,31.10,31.80]},{ x:'11/22/2023',y:[32.00,34.70,31.20,32.70]},{ x:'11/23/2023',y:[33.05,34.20,31.85,32.80]},{ x:'11/24/2023',y:[32.80,33.40,31.75,32.80]},{ x:'11/27/2023',y:[33.00,33.30,31.00,31.35]},{ x:'11/28/2023',y:[31.30,32.80,31.15,31.75]},{ x:'11/29/2023',y:[31.75,32.25,31.40,31.80]},{ x:'11/30/2023',y:[32.05,32.15,31.25,31.60]},{ x:'12/01/2023',y:[32.00,33.90,31.55,31.60]},{ x:'12/04/2023',y:[31.40,31.40,30.50,30.50]},{ x:'12/05/2023',y:[30.30,31.20,29.90,30.50]},{ x:'12/06/2023',y:[30.80,33.55,30.50,33.55]},{ x:'12/07/2023',y:[34.50,35.45,32.00,32.50]},{ x:'12/08/2023',y:[32.95,34.25,32.80,33.00]},{ x:'12/11/2023',y:[33.55,33.70,32.10,32.55]},{ x:'12/12/2023',y:[32.65,33.45,31.60,31.95]},{ x:'12/18/2023',y:[32.00,32.15,31.00,31.10]},{ x:'12/19/2023',y:[31.05,31.25,30.15,30.80]},{ x:'01/10/2024',y:[28.55,28.70,27.95,28.00]},{ x:'01/11/2024',y:[28.45,28.45,27.70,27.95]},{ x:'01/12/2024',y:[28.05,28.25,27.30,27.45]},{ x:'01/15/2024',y:[27.55,29.15,27.55,28.75]},{ x:'01/16/2024',y:[28.75,28.75,27.85,28.20]},{ x:'01/17/2024',y:[28.00,28.55,27.25,27.75]},{ x:'01/18/2024',y:[28.05,28.10,27.10,27.25]},{ x:'01/19/2024',y:[27.95,27.95,27.10,27.20]},{ x:'01/22/2024',y:[27.60,27.60,27.10,27.45]},{ x:'01/23/2024',y:[27.50,28.80,27.35,27.80]},{ x:'01/24/2024',y:[28.05,28.35,27.70,27.85]},{ x:'01/25/2024',y:[28.20,28.25,27.15,27.25]},{ x:'01/26/2024',y:[27.35,27.80,27.00,27.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3041 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());