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:'03/18/2024',y:[45.70,45.70,45.00,45.15]},{ x:'03/19/2024',y:[45.20,45.85,45.15,45.30]},{ x:'03/20/2024',y:[45.45,45.75,44.85,44.95]},{ x:'03/21/2024',y:[45.90,46.55,45.45,45.45]},{ x:'03/22/2024',y:[45.80,45.85,45.00,45.15]},{ x:'03/25/2024',y:[45.20,45.80,45.20,45.60]},{ x:'03/26/2024',y:[45.45,45.45,44.05,44.15]},{ x:'03/27/2024',y:[44.20,44.65,44.10,44.15]},{ x:'03/28/2024',y:[44.35,44.55,44.00,44.10]},{ x:'03/29/2024',y:[44.20,44.65,44.20,44.40]},{ x:'04/01/2024',y:[44.70,44.75,44.25,44.30]},{ x:'04/02/2024',y:[44.30,44.45,44.00,44.45]},{ x:'04/03/2024',y:[44.20,44.30,43.80,43.80]},{ x:'04/08/2024',y:[43.85,45.40,43.60,45.10]},{ x:'04/09/2024',y:[45.10,45.60,44.80,44.95]},{ x:'04/10/2024',y:[45.25,45.30,44.40,44.40]},{ x:'04/11/2024',y:[44.80,45.30,44.70,45.00]},{ x:'04/12/2024',y:[45.30,45.40,44.85,45.20]},{ x:'04/15/2024',y:[45.00,45.65,44.25,45.20]},{ x:'04/16/2024',y:[45.05,45.15,43.55,43.80]},{ x:'04/17/2024',y:[43.60,44.30,43.60,43.95]},{ x:'04/18/2024',y:[43.95,44.20,43.60,43.80]},{ x:'04/19/2024',y:[43.65,46.25,43.65,45.15]},{ x:'04/22/2024',y:[46.40,47.30,45.55,45.60]},{ x:'04/23/2024',y:[45.60,46.05,45.25,45.85]},{ x:'04/24/2024',y:[46.35,47.00,45.80,46.70]},{ x:'04/25/2024',y:[46.50,47.10,46.15,47.10]},{ x:'04/26/2024',y:[47.10,51.80,47.05,51.80]},{ x:'04/29/2024',y:[55.00,55.50,52.60,52.90]},{ x:'04/30/2024',y:[53.00,53.00,51.30,52.20]},{ x:'05/02/2024',y:[53.10,53.80,50.50,51.30]},{ x:'05/03/2024',y:[51.30,51.70,49.85,50.40]},{ x:'05/06/2024',y:[50.00,51.30,49.55,50.60]},{ x:'05/07/2024',y:[51.00,52.90,50.60,52.50]},{ x:'05/08/2024',y:[53.20,54.10,52.00,52.20]},{ x:'05/09/2024',y:[53.00,56.20,52.70,55.10]},{ x:'05/10/2024',y:[56.40,60.60,56.10,60.60]},{ x:'05/13/2024',y:[65.60,66.60,64.20,66.60]},{ x:'05/14/2024',y:[68.10,73.20,67.20,71.30]},{ x:'05/15/2024',y:[70.60,72.10,69.20,71.40]},{ x:'05/16/2024',y:[72.00,76.40,71.10,74.10]},{ x:'05/17/2024',y:[74.10,74.10,70.60,71.00]},{ x:'05/20/2024',y:[72.00,72.50,70.50,72.50]},{ x:'05/21/2024',y:[72.10,72.10,70.40,71.40]},{ x:'05/22/2024',y:[71.50,72.70,70.60,72.00]},{ x:'05/23/2024',y:[72.40,72.40,71.20,71.30]},{ x:'05/24/2024',y:[72.00,74.00,72.00,73.50]},{ x:'06/11/2024',y:[84.50,86.00,74.70,74.70]},{ x:'06/12/2024',y:[74.30,75.60,68.60,70.90]},{ x:'06/13/2024',y:[74.00,74.80,71.40,72.40]},{ x:'06/14/2024',y:[73.20,76.50,72.50,75.40]},{ x:'06/17/2024',y:[75.80,75.80,73.00,73.70]},{ x:'06/18/2024',y:[74.30,74.80,73.30,74.10]},{ x:'06/19/2024',y:[74.50,77.50,74.10,75.00]},{ x:'06/20/2024',y:[75.80,77.00,75.80,76.70]},{ x:'06/21/2024',y:[78.90,80.00,75.60,75.90]},{ x:'06/24/2024',y:[75.90,76.40,73.80,74.20]},{ x:'06/25/2024',y:[75.00,76.50,74.30,76.50]},{ x:'06/26/2024',y:[76.50,76.90,74.70,75.00]},{ x:'06/27/2024',y:[75.50,76.30,74.70,75.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2609 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());