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:[88.50,91.10,87.90,89.80]},{ x:'04/30/2024',y:[90.40,94.60,88.30,93.50]},{ x:'05/02/2024',y:[94.50,96.70,93.50,94.90]},{ x:'05/03/2024',y:[95.10,98.50,94.50,98.50]},{ x:'05/06/2024',y:[98.50,101.00,96.20,98.00]},{ x:'05/07/2024',y:[98.50,98.90,88.80,92.90]},{ x:'05/08/2024',y:[94.50,97.80,88.00,88.00]},{ x:'05/09/2024',y:[88.00,89.60,87.00,87.50]},{ x:'05/10/2024',y:[87.60,89.20,85.60,86.60]},{ x:'05/13/2024',y:[86.50,88.50,85.80,88.40]},{ x:'05/14/2024',y:[88.90,88.90,82.20,82.50]},{ x:'05/15/2024',y:[83.00,83.40,81.20,81.90]},{ x:'05/16/2024',y:[82.50,84.40,82.50,83.40]},{ x:'05/17/2024',y:[84.00,86.50,84.00,85.40]},{ x:'05/20/2024',y:[86.80,86.80,84.60,85.70]},{ x:'05/21/2024',y:[85.90,86.50,84.40,84.40]},{ x:'05/22/2024',y:[84.40,85.00,83.60,84.40]},{ x:'05/23/2024',y:[84.60,84.60,82.40,83.60]},{ x:'05/24/2024',y:[82.60,83.80,82.40,82.80]},{ x:'06/11/2024',y:[90.60,91.00,87.50,88.00]},{ x:'06/12/2024',y:[88.00,88.00,85.30,85.90]},{ x:'06/13/2024',y:[86.20,87.70,85.10,86.50]},{ x:'06/14/2024',y:[87.50,89.30,87.00,87.70]},{ x:'06/17/2024',y:[89.00,89.00,87.70,87.70]},{ x:'06/18/2024',y:[87.70,88.70,86.20,88.70]},{ x:'06/19/2024',y:[90.00,90.90,88.80,89.60]},{ x:'06/20/2024',y:[90.00,91.30,90.00,91.00]},{ x:'06/21/2024',y:[91.00,91.00,88.40,88.60]},{ x:'06/24/2024',y:[88.70,91.30,87.30,88.70]},{ x:'06/25/2024',y:[88.70,88.70,87.40,87.90]},{ x:'06/26/2024',y:[88.50,89.30,88.10,89.30]},{ x:'06/27/2024',y:[88.60,90.00,88.60,89.00]},{ x:'06/28/2024',y:[89.50,89.50,87.90,88.30]},{ x:'07/01/2024',y:[88.90,92.10,88.80,91.50]},{ x:'07/02/2024',y:[91.20,91.50,89.80,90.90]},{ x:'07/03/2024',y:[90.50,91.10,89.70,90.30]},{ x:'07/04/2024',y:[92.40,99.30,91.80,99.00]},{ x:'07/05/2024',y:[99.00,108.50,98.60,107.00]},{ x:'07/12/2024',y:[123.50,126.50,118.50,122.50]},{ x:'07/15/2024',y:[126.00,134.00,125.00,127.50]},{ x:'07/16/2024',y:[132.00,140.00,131.00,140.00]},{ x:'07/17/2024',y:[151.50,152.50,146.00,150.00]},{ x:'07/18/2024',y:[150.00,153.00,147.50,148.00]},{ x:'07/19/2024',y:[150.00,151.00,146.00,150.00]},{ x:'07/22/2024',y:[150.00,151.00,147.00,150.00]},{ x:'07/23/2024',y:[150.50,165.00,150.50,165.00]},{ x:'07/26/2024',y:[165.00,181.50,162.50,181.50]},{ x:'07/29/2024',y:[184.00,199.50,179.00,180.00]},{ x:'07/30/2024',y:[180.50,198.00,171.50,193.00]},{ x:'07/31/2024',y:[193.00,204.00,193.00,194.50]},{ x:'08/01/2024',y:[194.00,213.50,193.00,213.50]},{ x:'08/02/2024',y:[218.00,227.00,206.00,208.00]},{ x:'08/05/2024',y:[201.50,204.00,187.50,189.00]},{ x:'08/06/2024',y:[198.50,204.50,173.50,177.50]},{ x:'08/07/2024',y:[180.00,195.00,177.00,195.00]},{ x:'08/08/2024',y:[199.50,213.50,192.00,207.50]},{ x:'08/09/2024',y:[217.00,228.00,199.00,199.00]},{ x:'08/12/2024',y:[195.00,207.50,192.50,207.50]},{ x:'08/13/2024',y:[198.00,213.00,198.00,210.50]},{ x:'08/14/2024',y:[215.50,229.00,214.50,221.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "9906 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());