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/21/2024',y:[76.50,79.00,76.10,78.40]},{ x:'03/22/2024',y:[79.00,79.70,77.20,78.90]},{ x:'03/25/2024',y:[79.00,79.50,78.00,78.00]},{ x:'03/26/2024',y:[78.00,79.30,77.00,77.00]},{ x:'03/27/2024',y:[77.20,79.40,77.20,78.30]},{ x:'03/28/2024',y:[78.30,79.40,78.00,78.00]},{ x:'03/29/2024',y:[78.00,78.90,77.70,77.90]},{ x:'04/01/2024',y:[78.00,79.20,77.70,78.50]},{ x:'04/02/2024',y:[78.50,78.60,77.80,78.50]},{ x:'04/03/2024',y:[79.00,79.00,77.60,78.20]},{ x:'04/08/2024',y:[79.10,80.70,77.70,77.70]},{ x:'04/09/2024',y:[78.00,78.80,77.80,78.40]},{ x:'04/10/2024',y:[78.30,80.40,78.30,79.50]},{ x:'04/11/2024',y:[80.10,80.10,78.10,78.20]},{ x:'04/12/2024',y:[79.20,82.70,79.20,82.50]},{ x:'04/15/2024',y:[81.70,81.80,80.20,80.20]},{ x:'04/16/2024',y:[80.30,84.80,80.20,82.20]},{ x:'04/17/2024',y:[82.20,84.10,82.20,82.80]},{ x:'04/18/2024',y:[82.60,82.60,80.60,81.40]},{ x:'04/19/2024',y:[80.30,81.90,78.80,80.20]},{ x:'04/22/2024',y:[80.20,82.70,79.90,81.00]},{ x:'04/23/2024',y:[81.60,84.60,81.60,83.80]},{ x:'04/24/2024',y:[84.50,87.30,84.50,86.80]},{ x:'04/25/2024',y:[86.10,86.40,84.60,85.20]},{ x:'04/26/2024',y:[86.70,86.80,83.70,83.70]},{ x:'04/29/2024',y:[84.00,85.30,83.00,84.60]},{ x:'04/30/2024',y:[84.50,85.00,83.20,84.30]},{ x:'05/02/2024',y:[84.30,85.10,84.00,84.70]},{ x:'05/03/2024',y:[85.30,87.30,84.30,86.20]},{ x:'05/06/2024',y:[87.80,91.80,87.00,89.20]},{ x:'05/07/2024',y:[92.30,95.50,91.20,92.20]},{ x:'05/08/2024',y:[92.70,93.00,89.80,91.60]},{ x:'05/09/2024',y:[91.50,92.80,91.10,92.00]},{ x:'05/10/2024',y:[92.00,97.40,91.10,95.90]},{ x:'05/13/2024',y:[96.50,99.10,93.40,96.00]},{ x:'05/14/2024',y:[96.00,97.80,95.00,95.30]},{ x:'05/15/2024',y:[95.90,97.70,95.40,95.60]},{ x:'05/16/2024',y:[97.00,97.70,95.80,97.10]},{ x:'05/17/2024',y:[97.10,101.00,96.80,99.50]},{ x:'05/20/2024',y:[99.60,99.70,97.30,99.00]},{ x:'05/21/2024',y:[101.00,101.50,98.50,99.40]},{ x:'05/22/2024',y:[99.40,101.00,98.70,99.00]},{ x:'05/23/2024',y:[99.10,100.00,97.10,98.10]},{ x:'05/24/2024',y:[97.50,102.00,97.40,100.50]},{ x:'06/11/2024',y:[100.00,104.00,98.80,98.80]},{ x:'06/12/2024',y:[99.40,100.50,98.50,98.80]},{ x:'06/13/2024',y:[99.30,101.00,99.10,100.50]},{ x:'06/14/2024',y:[100.50,101.00,98.10,98.30]},{ x:'06/17/2024',y:[98.30,98.50,96.00,97.50]},{ x:'06/18/2024',y:[97.90,98.70,96.10,97.60]},{ x:'06/19/2024',y:[97.60,97.90,94.80,94.90]},{ x:'06/20/2024',y:[94.90,96.70,94.90,96.60]},{ x:'06/21/2024',y:[96.10,98.10,95.50,97.90]},{ x:'06/24/2024',y:[98.60,98.60,95.50,95.50]},{ x:'06/25/2024',y:[95.50,96.40,93.00,96.40]},{ x:'06/26/2024',y:[96.90,97.30,95.20,95.40]},{ x:'06/27/2024',y:[96.20,96.30,94.90,94.90]},{ x:'06/28/2024',y:[96.00,96.00,95.10,95.30]},{ x:'07/01/2024',y:[95.50,97.50,95.30,95.80]},{ x:'07/02/2024',y:[97.10,97.90,95.80,96.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3141 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());