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:'11/21/2023',y:[38.60,38.90,38.25,38.45]},{ x:'11/22/2023',y:[38.55,38.55,38.00,38.10]},{ x:'11/23/2023',y:[38.15,39.10,38.15,38.80]},{ x:'11/24/2023',y:[39.05,40.80,38.70,40.10]},{ x:'11/27/2023',y:[40.30,40.80,39.70,40.45]},{ x:'11/28/2023',y:[40.65,40.80,40.15,40.50]},{ x:'11/29/2023',y:[40.60,41.00,40.20,40.85]},{ x:'11/30/2023',y:[40.75,40.95,40.35,40.35]},{ x:'12/01/2023',y:[40.45,40.60,39.90,40.05]},{ x:'12/04/2023',y:[40.05,41.10,40.00,40.55]},{ x:'12/05/2023',y:[40.45,42.65,40.20,41.65]},{ x:'12/06/2023',y:[41.80,41.80,40.05,40.20]},{ x:'12/07/2023',y:[40.90,43.20,40.80,42.00]},{ x:'12/08/2023',y:[42.30,44.25,41.55,43.10]},{ x:'12/11/2023',y:[43.75,44.20,42.95,44.10]},{ x:'12/12/2023',y:[44.15,44.80,43.75,44.00]},{ x:'12/18/2023',y:[41.30,41.65,40.75,41.10]},{ x:'12/19/2023',y:[41.20,41.45,40.40,41.10]},{ x:'01/10/2024',y:[45.65,46.40,43.85,43.85]},{ x:'01/11/2024',y:[45.00,45.40,43.95,44.55]},{ x:'01/12/2024',y:[44.05,44.20,42.80,43.00]},{ x:'01/15/2024',y:[43.35,44.50,43.15,43.35]},{ x:'01/16/2024',y:[43.30,43.60,42.10,42.15]},{ x:'01/17/2024',y:[42.15,42.20,38.80,38.90]},{ x:'01/18/2024',y:[39.15,39.55,38.05,39.20]},{ x:'01/19/2024',y:[39.25,40.45,39.20,40.40]},{ x:'01/22/2024',y:[41.80,42.40,41.25,41.90]},{ x:'01/23/2024',y:[41.80,43.40,41.75,43.30]},{ x:'01/24/2024',y:[42.65,44.10,42.60,44.00]},{ x:'01/25/2024',y:[43.85,44.30,43.20,43.55]},{ x:'01/26/2024',y:[43.25,43.90,42.70,43.25]},{ x:'01/29/2024',y:[43.05,43.90,43.05,43.70]},{ x:'01/30/2024',y:[43.70,44.20,43.30,43.55]},{ x:'01/31/2024',y:[43.60,44.30,43.60,43.85]},{ x:'02/01/2024',y:[44.30,45.20,44.15,45.15]},{ x:'02/02/2024',y:[45.20,45.45,44.85,45.30]},{ x:'02/05/2024',y:[45.10,45.25,44.25,45.00]},{ x:'02/15/2024',y:[45.35,46.40,45.10,46.30]},{ x:'02/16/2024',y:[45.80,46.45,43.85,44.10]},{ x:'02/19/2024',y:[44.30,45.50,44.15,45.35]},{ x:'02/20/2024',y:[45.45,45.45,43.60,44.00]},{ x:'02/21/2024',y:[43.80,44.90,43.80,44.40]},{ x:'02/22/2024',y:[45.45,48.10,44.65,45.40]},{ x:'02/23/2024',y:[45.60,47.45,44.70,46.75]},{ x:'02/26/2024',y:[47.00,48.65,46.40,48.15]},{ x:'02/27/2024',y:[48.30,48.80,47.15,48.40]},{ x:'02/29/2024',y:[48.55,52.10,48.05,51.90]},{ x:'03/01/2024',y:[52.20,53.80,51.40,53.40]},{ x:'03/04/2024',y:[54.00,55.00,52.60,53.00]},{ x:'03/05/2024',y:[53.30,54.00,51.80,52.20]},{ x:'03/06/2024',y:[52.50,54.70,51.80,53.00]},{ x:'03/07/2024',y:[53.50,53.70,51.80,52.50]},{ x:'03/08/2024',y:[52.40,52.50,49.85,50.00]},{ x:'03/11/2024',y:[51.90,52.10,50.00,51.10]},{ x:'03/12/2024',y:[50.20,51.10,49.25,49.40]},{ x:'03/13/2024',y:[49.50,50.30,48.40,48.65]},{ x:'03/14/2024',y:[48.55,49.25,48.20,48.35]},{ x:'03/15/2024',y:[48.00,48.70,46.80,47.10]},{ x:'03/18/2024',y:[47.45,48.45,47.20,48.20]},{ x:'03/19/2024',y:[48.35,49.45,47.65,47.65]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2371 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());