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/12/2023',y:[20.40,20.85,20.25,20.70]},{ x:'10/13/2023',y:[20.70,20.75,20.50,20.50]},{ x:'10/18/2023',y:[20.05,20.20,19.05,19.10]},{ x:'10/19/2023',y:[19.10,19.45,18.50,19.00]},{ x:'10/20/2023',y:[18.65,19.25,18.65,19.00]},{ x:'10/23/2023',y:[19.15,20.35,18.90,19.95]},{ x:'10/24/2023',y:[19.95,20.10,19.70,19.95]},{ x:'10/25/2023',y:[20.25,20.25,19.75,19.80]},{ x:'10/26/2023',y:[19.75,20.10,19.50,19.55]},{ x:'10/27/2023',y:[20.00,21.50,19.55,21.20]},{ x:'10/31/2023',y:[24.00,25.60,23.90,25.60]},{ x:'11/01/2023',y:[26.40,26.40,23.45,26.00]},{ x:'11/02/2023',y:[26.60,26.75,24.65,25.85]},{ x:'11/03/2023',y:[26.50,27.20,25.05,25.10]},{ x:'11/06/2023',y:[25.35,27.60,25.35,27.60]},{ x:'11/07/2023',y:[28.20,30.35,27.70,28.60]},{ x:'11/08/2023',y:[28.80,29.40,27.75,29.00]},{ x:'11/09/2023',y:[29.25,30.45,27.70,27.70]},{ x:'11/10/2023',y:[27.10,27.75,26.70,27.55]},{ x:'11/13/2023',y:[28.10,28.10,26.95,27.40]},{ x:'11/14/2023',y:[27.45,28.70,27.45,27.50]},{ x:'11/15/2023',y:[27.65,29.90,27.65,29.65]},{ x:'11/16/2023',y:[30.40,32.60,29.70,32.60]},{ x:'11/17/2023',y:[33.50,34.90,31.60,32.50]},{ x:'11/20/2023',y:[32.95,35.75,32.95,35.75]},{ x:'11/21/2023',y:[38.00,39.30,37.70,39.30]},{ x:'11/22/2023',y:[41.80,42.15,38.20,39.05]},{ x:'11/23/2023',y:[39.35,42.95,39.30,42.95]},{ x:'11/24/2023',y:[43.50,45.30,43.50,45.30]},{ x:'11/27/2023',y:[47.75,49.80,46.50,49.80]},{ x:'11/28/2023',y:[50.20,54.70,50.20,54.60]},{ x:'11/29/2023',y:[53.50,53.50,49.15,49.15]},{ x:'11/30/2023',y:[49.20,50.50,48.05,50.50]},{ x:'12/01/2023',y:[50.70,52.60,50.70,52.00]},{ x:'12/04/2023',y:[53.00,53.00,50.90,51.30]},{ x:'12/05/2023',y:[51.60,51.60,50.20,50.80]},{ x:'12/06/2023',y:[51.50,51.80,50.50,51.50]},{ x:'12/07/2023',y:[51.50,52.20,51.00,51.20]},{ x:'12/08/2023',y:[51.20,52.50,51.00,52.50]},{ x:'12/11/2023',y:[50.90,51.50,49.90,51.50]},{ x:'12/12/2023',y:[51.50,52.50,49.40,49.50]},{ x:'12/18/2023',y:[36.95,37.60,35.05,35.05]},{ x:'12/19/2023',y:[35.00,35.25,33.30,33.55]},{ x:'01/10/2024',y:[28.50,30.90,28.35,29.30]},{ x:'01/11/2024',y:[29.00,29.55,28.60,29.15]},{ x:'01/12/2024',y:[29.50,32.05,29.50,32.05]},{ x:'01/15/2024',y:[35.25,35.25,34.10,35.25]},{ x:'01/16/2024',y:[35.95,38.20,35.25,36.85]},{ x:'01/17/2024',y:[36.35,36.75,34.00,35.20]},{ x:'01/18/2024',y:[35.45,38.70,35.45,38.70]},{ x:'01/19/2024',y:[40.00,42.55,39.90,42.55]},{ x:'01/22/2024',y:[46.80,46.80,39.90,40.45]},{ x:'01/23/2024',y:[42.10,42.20,39.65,41.15]},{ x:'01/24/2024',y:[41.15,45.25,41.05,43.90]},{ x:'01/25/2024',y:[44.25,48.25,44.25,48.25]},{ x:'01/26/2024',y:[50.00,51.00,43.55,44.30]},{ x:'01/29/2024',y:[44.25,45.80,42.80,45.20]},{ x:'01/30/2024',y:[45.20,48.30,44.90,47.00]},{ x:'01/31/2024',y:[47.35,48.20,45.20,45.20]},{ x:'02/01/2024',y:[45.20,45.20,42.80,42.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3623 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());