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:'01/22/2024',y:[25.70,26.00,25.30,25.30]},{ x:'01/23/2024',y:[25.50,25.65,25.25,25.45]},{ x:'01/24/2024',y:[25.40,26.35,25.40,25.75]},{ x:'01/25/2024',y:[25.75,25.75,25.00,25.10]},{ x:'01/26/2024',y:[25.15,27.55,24.95,26.80]},{ x:'01/29/2024',y:[26.80,28.70,26.70,27.60]},{ x:'01/30/2024',y:[27.90,28.15,26.80,27.60]},{ x:'01/31/2024',y:[27.70,28.20,27.25,27.90]},{ x:'02/01/2024',y:[27.65,28.40,27.25,27.25]},{ x:'02/02/2024',y:[27.25,27.65,26.70,26.75]},{ x:'02/05/2024',y:[26.75,27.15,26.30,26.40]},{ x:'02/15/2024',y:[26.50,29.00,26.50,28.80]},{ x:'02/16/2024',y:[28.40,30.50,27.50,29.50]},{ x:'02/19/2024',y:[30.65,31.90,30.10,31.75]},{ x:'02/20/2024',y:[31.85,34.90,31.45,34.90]},{ x:'02/21/2024',y:[36.05,38.35,35.00,38.35]},{ x:'02/22/2024',y:[39.00,39.95,34.55,34.60]},{ x:'02/23/2024',y:[35.90,38.00,35.00,35.50]},{ x:'02/26/2024',y:[36.05,39.05,35.85,39.05]},{ x:'02/27/2024',y:[42.30,42.90,40.45,41.10]},{ x:'02/29/2024',y:[41.35,43.95,40.65,41.90]},{ x:'03/01/2024',y:[42.70,46.05,41.30,46.05]},{ x:'03/04/2024',y:[47.50,49.20,42.40,43.70]},{ x:'03/05/2024',y:[44.55,48.05,43.90,48.05]},{ x:'03/06/2024',y:[48.95,51.00,47.50,47.70]},{ x:'03/07/2024',y:[47.75,49.45,46.50,47.10]},{ x:'03/08/2024',y:[46.65,48.90,43.80,44.65]},{ x:'03/11/2024',y:[45.20,49.10,44.30,49.10]},{ x:'03/12/2024',y:[49.25,52.90,48.00,49.80]},{ x:'03/13/2024',y:[50.30,50.50,45.60,45.60]},{ x:'03/14/2024',y:[45.20,46.35,44.20,45.05]},{ x:'03/15/2024',y:[45.50,47.45,44.30,44.80]},{ x:'03/18/2024',y:[44.80,45.45,43.30,45.00]},{ x:'03/19/2024',y:[45.05,45.95,43.55,43.55]},{ x:'03/20/2024',y:[44.00,45.75,43.15,43.15]},{ x:'03/21/2024',y:[43.75,43.90,41.85,42.95]},{ x:'03/22/2024',y:[43.30,44.00,42.25,42.50]},{ x:'03/25/2024',y:[42.20,42.80,41.60,42.00]},{ x:'03/26/2024',y:[42.00,43.60,41.00,41.00]},{ x:'03/27/2024',y:[41.40,42.45,40.65,41.70]},{ x:'03/28/2024',y:[42.00,43.90,41.75,43.10]},{ x:'03/29/2024',y:[43.55,43.95,41.15,42.50]},{ x:'04/01/2024',y:[42.50,43.15,42.10,42.25]},{ x:'04/02/2024',y:[42.80,42.80,41.70,42.00]},{ x:'04/03/2024',y:[42.00,42.00,40.00,41.15]},{ x:'04/08/2024',y:[41.60,42.00,40.65,41.00]},{ x:'04/09/2024',y:[41.20,41.55,40.60,41.40]},{ x:'04/10/2024',y:[41.95,42.20,41.15,41.70]},{ x:'04/11/2024',y:[42.05,42.60,41.05,41.50]},{ x:'04/12/2024',y:[41.50,45.65,41.30,45.65]},{ x:'04/15/2024',y:[48.90,49.80,45.85,46.35]},{ x:'04/16/2024',y:[45.45,46.20,44.00,45.20]},{ x:'04/17/2024',y:[46.00,48.85,45.65,47.20]},{ x:'04/18/2024',y:[47.40,49.90,46.50,48.95]},{ x:'04/19/2024',y:[49.15,53.80,48.55,53.80]},{ x:'04/22/2024',y:[57.00,58.40,50.00,50.40]},{ x:'04/23/2024',y:[50.30,52.80,45.75,48.15]},{ x:'04/24/2024',y:[49.05,49.10,46.35,48.00]},{ x:'04/25/2024',y:[48.00,49.80,47.15,48.80]},{ x:'04/26/2024',y:[48.80,52.00,48.60,49.55]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2543 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());