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/23/2023',y:[43.90,43.90,42.85,42.90]},{ x:'11/24/2023',y:[43.25,43.25,42.90,42.90]},{ x:'11/27/2023',y:[42.95,43.50,42.60,42.75]},{ x:'11/28/2023',y:[42.90,43.80,42.90,43.40]},{ x:'11/29/2023',y:[43.35,43.50,43.00,43.35]},{ x:'11/30/2023',y:[43.40,43.55,42.95,43.00]},{ x:'12/01/2023',y:[42.95,42.95,42.55,42.70]},{ x:'12/04/2023',y:[42.85,42.85,42.55,42.85]},{ x:'12/05/2023',y:[43.00,44.80,43.00,44.60]},{ x:'12/06/2023',y:[44.65,45.20,44.45,44.60]},{ x:'12/07/2023',y:[44.70,47.40,44.50,46.05]},{ x:'12/08/2023',y:[46.05,49.50,46.05,47.70]},{ x:'12/11/2023',y:[48.30,51.70,48.30,50.10]},{ x:'12/12/2023',y:[50.10,51.60,48.60,50.20]},{ x:'12/18/2023',y:[48.90,49.10,48.70,48.90]},{ x:'12/19/2023',y:[48.70,49.30,48.55,49.05]},{ x:'01/10/2024',y:[47.75,47.75,47.25,47.25]},{ x:'01/11/2024',y:[47.00,47.00,46.00,46.00]},{ x:'01/12/2024',y:[46.05,46.05,45.20,45.35]},{ x:'01/15/2024',y:[46.15,46.15,45.35,45.35]},{ x:'01/16/2024',y:[45.35,45.35,43.50,43.85]},{ x:'01/17/2024',y:[43.75,45.35,43.45,44.80]},{ x:'01/18/2024',y:[44.35,44.35,44.20,44.30]},{ x:'01/19/2024',y:[47.15,47.15,44.50,45.45]},{ x:'01/22/2024',y:[45.50,46.45,45.00,46.00]},{ x:'01/23/2024',y:[46.20,46.50,45.65,45.75]},{ x:'01/24/2024',y:[45.30,46.15,45.30,45.70]},{ x:'01/25/2024',y:[46.00,46.35,45.90,46.10]},{ x:'01/26/2024',y:[45.30,48.20,45.30,47.30]},{ x:'01/29/2024',y:[47.70,49.65,47.65,48.55]},{ x:'01/30/2024',y:[48.55,49.65,48.50,49.65]},{ x:'01/31/2024',y:[48.80,50.30,48.80,49.65]},{ x:'02/01/2024',y:[49.65,51.00,49.65,49.85]},{ x:'02/02/2024',y:[49.85,50.80,49.40,49.40]},{ x:'02/05/2024',y:[49.30,50.20,48.65,50.20]},{ x:'02/15/2024',y:[49.95,51.10,49.50,50.40]},{ x:'02/16/2024',y:[50.70,51.40,50.00,50.60]},{ x:'02/19/2024',y:[50.70,51.00,50.00,50.20]},{ x:'02/20/2024',y:[50.20,50.70,49.50,50.10]},{ x:'02/21/2024',y:[49.85,50.90,48.80,50.10]},{ x:'02/22/2024',y:[50.10,50.90,50.10,50.20]},{ x:'02/23/2024',y:[50.70,52.10,50.70,50.90]},{ x:'02/26/2024',y:[51.40,53.00,50.90,52.80]},{ x:'02/27/2024',y:[53.00,53.60,52.00,53.30]},{ x:'02/29/2024',y:[53.40,53.80,52.40,53.60]},{ x:'03/01/2024',y:[53.20,53.20,52.50,52.70]},{ x:'03/04/2024',y:[52.60,52.60,51.00,51.70]},{ x:'03/05/2024',y:[51.80,52.40,51.50,51.90]},{ x:'03/06/2024',y:[51.90,52.40,51.90,51.90]},{ x:'03/07/2024',y:[52.00,53.10,52.00,52.80]},{ x:'03/08/2024',y:[52.70,53.30,51.50,52.00]},{ x:'03/11/2024',y:[52.00,52.20,51.50,51.70]},{ x:'03/12/2024',y:[52.00,52.80,51.90,52.10]},{ x:'03/13/2024',y:[52.10,52.50,50.70,51.80]},{ x:'03/14/2024',y:[52.30,54.50,51.50,53.40]},{ x:'03/15/2024',y:[54.10,54.20,52.90,53.50]},{ x:'03/18/2024',y:[54.00,54.00,52.30,53.50]},{ x:'03/19/2024',y:[53.00,54.00,52.90,53.20]},{ x:'03/20/2024',y:[53.70,53.70,52.50,53.50]},{ x:'03/21/2024',y:[53.70,54.00,53.00,53.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4148 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());