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:'04/16/2024',y:[40.80,40.80,40.05,40.10]},{ x:'04/17/2024',y:[40.10,41.00,40.10,40.85]},{ x:'04/18/2024',y:[40.45,42.20,40.35,41.60]},{ x:'04/19/2024',y:[41.30,42.15,40.90,41.45]},{ x:'04/22/2024',y:[41.45,44.45,41.10,42.40]},{ x:'04/23/2024',y:[42.40,42.65,41.80,42.25]},{ x:'04/24/2024',y:[42.30,42.45,41.85,41.95]},{ x:'04/25/2024',y:[42.00,43.00,42.00,42.70]},{ x:'04/26/2024',y:[42.70,43.60,42.40,42.95]},{ x:'04/29/2024',y:[43.25,44.80,42.90,44.30]},{ x:'04/30/2024',y:[44.30,44.35,43.20,44.30]},{ x:'05/02/2024',y:[44.00,47.50,44.00,46.60]},{ x:'05/03/2024',y:[47.50,48.20,46.10,47.20]},{ x:'05/06/2024',y:[47.75,48.70,47.20,48.15]},{ x:'05/07/2024',y:[48.20,50.00,47.05,47.85]},{ x:'05/08/2024',y:[47.90,48.80,46.50,46.85]},{ x:'05/09/2024',y:[46.85,47.65,45.55,45.65]},{ x:'05/10/2024',y:[45.80,45.95,45.15,45.20]},{ x:'05/13/2024',y:[45.25,46.25,44.70,46.10]},{ x:'05/14/2024',y:[46.10,46.20,45.15,45.25]},{ x:'05/15/2024',y:[45.00,45.55,44.20,44.45]},{ x:'05/16/2024',y:[44.95,46.15,44.55,45.55]},{ x:'05/17/2024',y:[45.80,46.15,45.35,45.70]},{ x:'05/20/2024',y:[45.75,46.15,45.10,45.20]},{ x:'05/21/2024',y:[45.20,45.20,44.35,44.60]},{ x:'05/22/2024',y:[44.60,45.30,44.45,45.25]},{ x:'05/23/2024',y:[45.00,45.00,44.40,44.50]},{ x:'05/24/2024',y:[44.30,44.60,43.75,44.35]},{ x:'06/11/2024',y:[48.45,49.25,47.45,48.95]},{ x:'06/12/2024',y:[49.10,49.70,48.30,48.30]},{ x:'06/13/2024',y:[48.40,49.25,47.70,49.15]},{ x:'06/14/2024',y:[49.50,52.50,49.10,51.60]},{ x:'06/17/2024',y:[52.40,53.50,51.40,52.10]},{ x:'06/18/2024',y:[52.30,52.50,51.30,51.60]},{ x:'06/19/2024',y:[51.50,52.30,50.70,51.70]},{ x:'06/20/2024',y:[51.70,52.70,51.50,52.50]},{ x:'06/21/2024',y:[52.80,53.20,51.30,52.80]},{ x:'06/24/2024',y:[52.30,54.70,52.00,53.20]},{ x:'06/25/2024',y:[53.10,53.50,51.60,51.90]},{ x:'06/26/2024',y:[52.00,53.40,51.80,52.70]},{ x:'06/27/2024',y:[52.40,54.30,52.40,53.40]},{ x:'06/28/2024',y:[53.80,53.80,52.00,52.10]},{ x:'07/01/2024',y:[51.80,53.10,51.70,53.10]},{ x:'07/02/2024',y:[53.10,53.30,52.40,53.10]},{ x:'07/03/2024',y:[53.10,53.70,52.80,53.20]},{ x:'07/04/2024',y:[53.70,55.80,53.50,55.20]},{ x:'07/05/2024',y:[55.80,55.80,54.90,55.30]},{ x:'07/12/2024',y:[59.00,61.60,59.00,60.70]},{ x:'07/15/2024',y:[61.50,64.40,60.70,61.20]},{ x:'07/16/2024',y:[61.50,65.40,61.20,64.40]},{ x:'07/17/2024',y:[64.50,67.30,64.40,65.00]},{ x:'07/18/2024',y:[64.70,66.80,63.50,65.90]},{ x:'07/19/2024',y:[66.20,66.30,61.60,63.80]},{ x:'07/22/2024',y:[63.60,63.70,59.90,60.60]},{ x:'07/23/2024',y:[61.50,63.70,61.00,62.60]},{ x:'07/26/2024',y:[60.90,63.20,60.60,61.60]},{ x:'07/29/2024',y:[62.30,65.00,62.20,63.00]},{ x:'07/30/2024',y:[62.80,64.80,61.30,64.10]},{ x:'07/31/2024',y:[64.40,65.00,62.30,64.00]},{ x:'08/01/2024',y:[63.20,64.60,62.60,64.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2542 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());