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/29/2024',y:[23.10,23.30,23.05,23.20]},{ x:'04/30/2024',y:[23.30,23.45,23.20,23.35]},{ x:'05/02/2024',y:[23.35,23.70,23.30,23.60]},{ x:'05/03/2024',y:[23.75,23.85,23.50,23.50]},{ x:'05/06/2024',y:[23.60,23.75,23.50,23.65]},{ x:'05/07/2024',y:[23.60,23.65,23.45,23.65]},{ x:'05/08/2024',y:[23.65,23.65,23.50,23.50]},{ x:'05/09/2024',y:[23.55,23.60,23.40,23.45]},{ x:'05/10/2024',y:[23.40,23.50,23.35,23.50]},{ x:'05/13/2024',y:[24.00,24.80,24.00,24.50]},{ x:'05/14/2024',y:[24.85,24.85,24.45,24.55]},{ x:'05/15/2024',y:[24.60,24.65,24.40,24.50]},{ x:'05/16/2024',y:[24.65,24.70,24.50,24.65]},{ x:'05/17/2024',y:[24.55,24.85,24.55,24.75]},{ x:'05/20/2024',y:[24.75,24.90,24.60,24.75]},{ x:'05/21/2024',y:[24.65,25.15,24.65,25.15]},{ x:'05/22/2024',y:[25.40,25.40,25.00,25.10]},{ x:'05/23/2024',y:[25.10,25.20,24.80,24.85]},{ x:'05/24/2024',y:[24.75,25.20,24.65,25.20]},{ x:'06/11/2024',y:[32.40,32.75,30.15,30.45]},{ x:'06/12/2024',y:[30.40,33.45,29.90,33.45]},{ x:'06/13/2024',y:[34.25,36.75,33.80,36.75]},{ x:'06/14/2024',y:[38.50,40.35,36.90,37.50]},{ x:'06/17/2024',y:[37.45,38.70,35.70,37.90]},{ x:'06/18/2024',y:[37.90,39.45,37.40,39.15]},{ x:'06/19/2024',y:[39.90,43.05,39.50,40.00]},{ x:'06/20/2024',y:[40.55,41.80,39.20,41.80]},{ x:'06/21/2024',y:[41.80,42.35,40.60,41.10]},{ x:'06/24/2024',y:[40.75,41.00,38.80,38.95]},{ x:'06/25/2024',y:[38.60,39.10,37.70,38.50]},{ x:'06/26/2024',y:[39.10,40.70,38.75,39.60]},{ x:'06/27/2024',y:[39.05,39.90,38.50,38.60]},{ x:'06/28/2024',y:[39.10,42.30,38.70,40.20]},{ x:'07/01/2024',y:[40.75,42.75,39.90,41.65]},{ x:'07/02/2024',y:[41.65,42.70,40.80,41.10]},{ x:'07/03/2024',y:[41.80,45.20,41.30,45.20]},{ x:'07/04/2024',y:[48.75,49.70,48.10,49.70]},{ x:'07/05/2024',y:[53.80,54.60,50.90,52.50]},{ x:'07/12/2024',y:[48.85,51.70,48.20,49.85]},{ x:'07/15/2024',y:[49.80,50.60,48.55,48.80]},{ x:'07/16/2024',y:[48.65,51.10,48.00,49.95]},{ x:'07/17/2024',y:[50.00,51.70,49.30,50.00]},{ x:'07/18/2024',y:[48.90,49.60,48.05,48.10]},{ x:'07/19/2024',y:[48.30,49.10,46.75,47.20]},{ x:'07/22/2024',y:[47.50,47.95,45.00,45.35]},{ x:'07/23/2024',y:[47.05,48.95,45.70,46.00]},{ x:'07/26/2024',y:[44.40,45.50,43.70,45.00]},{ x:'07/29/2024',y:[45.80,45.90,43.00,43.10]},{ x:'07/30/2024',y:[41.65,43.40,41.20,43.30]},{ x:'07/31/2024',y:[42.70,43.75,42.05,42.60]},{ x:'08/01/2024',y:[44.00,46.85,44.00,46.85]},{ x:'08/02/2024',y:[44.30,47.80,44.20,44.80]},{ x:'08/05/2024',y:[43.15,43.20,40.35,40.35]},{ x:'08/06/2024',y:[40.40,42.00,36.35,38.35]},{ x:'08/07/2024',y:[40.20,42.15,40.00,42.15]},{ x:'08/08/2024',y:[40.95,44.45,40.80,43.15]},{ x:'08/09/2024',y:[44.50,46.50,43.65,44.10]},{ x:'08/12/2024',y:[45.30,46.25,45.15,45.85]},{ x:'08/13/2024',y:[46.80,46.85,45.20,46.25]},{ x:'08/14/2024',y:[46.75,46.80,44.10,44.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3048 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());