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/25/2024',y:[68.50,68.50,66.70,66.70]},{ x:'04/26/2024',y:[67.70,67.70,65.80,66.70]},{ x:'04/29/2024',y:[66.90,67.40,65.80,66.70]},{ x:'04/30/2024',y:[69.00,73.00,67.30,68.80]},{ x:'05/02/2024',y:[69.10,71.00,68.20,68.40]},{ x:'05/03/2024',y:[68.30,68.30,63.80,66.40]},{ x:'05/06/2024',y:[66.90,67.80,66.40,66.40]},{ x:'05/07/2024',y:[66.30,67.10,66.20,67.10]},{ x:'05/08/2024',y:[68.50,68.50,66.60,66.60]},{ x:'05/09/2024',y:[67.10,67.10,64.20,65.30]},{ x:'05/10/2024',y:[65.90,65.90,65.00,65.20]},{ x:'05/13/2024',y:[65.20,66.10,63.50,66.00]},{ x:'05/14/2024',y:[65.90,68.50,65.90,66.70]},{ x:'05/15/2024',y:[67.00,67.30,65.50,66.90]},{ x:'05/16/2024',y:[67.10,68.10,66.70,67.20]},{ x:'05/17/2024',y:[66.80,68.70,66.80,67.90]},{ x:'05/20/2024',y:[69.00,69.10,68.00,68.00]},{ x:'05/21/2024',y:[68.90,68.90,67.90,68.40]},{ x:'05/22/2024',y:[68.20,69.00,67.70,68.10]},{ x:'05/23/2024',y:[68.20,68.20,67.00,67.50]},{ x:'05/24/2024',y:[67.90,68.60,67.00,67.40]},{ x:'06/11/2024',y:[83.70,83.70,80.20,81.60]},{ x:'06/12/2024',y:[81.40,86.00,79.40,84.80]},{ x:'06/13/2024',y:[87.60,89.90,84.00,89.90]},{ x:'06/14/2024',y:[91.30,98.80,90.80,95.90]},{ x:'06/17/2024',y:[95.90,98.30,88.50,97.90]},{ x:'06/18/2024',y:[93.00,99.60,93.00,98.90]},{ x:'06/19/2024',y:[100.00,100.00,96.90,97.80]},{ x:'06/20/2024',y:[99.80,100.00,97.10,97.50]},{ x:'06/21/2024',y:[97.60,99.80,95.00,96.60]},{ x:'06/24/2024',y:[97.10,106.00,95.80,102.00]},{ x:'06/25/2024',y:[101.50,112.00,98.20,112.00]},{ x:'06/26/2024',y:[112.50,114.00,105.00,109.50]},{ x:'06/27/2024',y:[111.50,119.50,106.50,114.50]},{ x:'06/28/2024',y:[108.50,120.00,108.50,117.50]},{ x:'07/01/2024',y:[120.00,121.00,112.00,115.00]},{ x:'07/02/2024',y:[116.00,118.00,103.50,104.00]},{ x:'07/03/2024',y:[106.00,114.00,106.00,113.50]},{ x:'07/04/2024',y:[116.00,124.50,113.00,114.00]},{ x:'07/05/2024',y:[115.00,122.50,115.00,122.00]},{ x:'07/12/2024',y:[100.50,102.00,97.60,100.50]},{ x:'07/15/2024',y:[102.00,104.00,97.70,97.70]},{ x:'07/16/2024',y:[100.50,107.00,100.50,107.00]},{ x:'07/17/2024',y:[109.00,110.50,105.00,107.50]},{ x:'07/18/2024',y:[105.50,106.00,99.10,99.80]},{ x:'07/19/2024',y:[100.00,101.00,95.90,95.90]},{ x:'07/22/2024',y:[95.00,95.90,86.40,86.40]},{ x:'07/23/2024',y:[86.10,93.80,86.10,87.50]},{ x:'07/26/2024',y:[82.50,89.00,82.00,85.70]},{ x:'07/29/2024',y:[87.80,90.90,84.80,84.90]},{ x:'07/30/2024',y:[85.10,85.20,82.40,84.30]},{ x:'07/31/2024',y:[85.00,85.60,83.20,84.70]},{ x:'08/01/2024',y:[86.50,88.20,83.20,83.50]},{ x:'08/02/2024',y:[82.00,85.50,81.80,82.50]},{ x:'08/05/2024',y:[79.10,79.10,74.30,74.30]},{ x:'08/06/2024',y:[76.80,76.80,66.90,74.20]},{ x:'08/07/2024',y:[74.20,79.70,73.60,79.00]},{ x:'08/08/2024',y:[76.70,81.50,75.90,78.00]},{ x:'08/09/2024',y:[80.70,81.00,75.20,75.20]},{ x:'08/12/2024',y:[76.00,77.90,75.50,75.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8099 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());