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/08/2023',y:[39.70,40.00,39.55,39.75]},{ x:'11/09/2023',y:[39.75,39.75,39.50,39.50]},{ x:'11/10/2023',y:[39.55,40.35,39.40,39.85]},{ x:'11/13/2023',y:[39.95,40.40,39.50,39.50]},{ x:'11/14/2023',y:[40.20,40.20,39.05,39.25]},{ x:'11/15/2023',y:[39.20,40.00,39.20,39.85]},{ x:'11/16/2023',y:[40.40,43.80,40.40,43.80]},{ x:'11/17/2023',y:[45.20,47.40,44.50,45.10]},{ x:'11/20/2023',y:[45.50,45.50,43.00,43.45]},{ x:'11/21/2023',y:[43.45,44.35,42.90,43.30]},{ x:'11/22/2023',y:[43.30,43.40,42.85,43.20]},{ 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]} ] }], 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());