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/30/2024',y:[83.80,84.70,80.70,84.70]},{ x:'05/02/2024',y:[84.40,85.00,83.50,84.80]},{ x:'05/03/2024',y:[85.10,86.70,83.30,83.30]},{ x:'05/06/2024',y:[85.30,85.30,81.40,82.10]},{ x:'05/07/2024',y:[82.10,82.10,79.10,79.10]},{ x:'05/08/2024',y:[79.60,80.10,78.40,78.70]},{ x:'05/09/2024',y:[77.10,79.10,77.10,78.00]},{ x:'05/10/2024',y:[79.00,79.70,78.60,79.70]},{ x:'05/13/2024',y:[80.00,80.00,78.10,78.10]},{ x:'05/14/2024',y:[78.20,79.00,76.60,76.70]},{ x:'05/15/2024',y:[76.80,78.00,76.30,76.50]},{ x:'05/16/2024',y:[76.10,79.80,76.00,79.80]},{ x:'05/17/2024',y:[80.20,87.70,80.20,87.70]},{ x:'05/20/2024',y:[89.50,94.00,86.60,91.50]},{ x:'05/21/2024',y:[92.00,100.50,91.30,99.50]},{ x:'05/22/2024',y:[102.00,102.00,97.20,98.90]},{ x:'05/23/2024',y:[101.50,101.50,98.00,98.90]},{ x:'05/24/2024',y:[96.50,100.50,95.30,99.80]},{ x:'06/11/2024',y:[95.00,95.00,91.70,92.30]},{ x:'06/12/2024',y:[92.30,93.00,90.70,92.50]},{ x:'06/13/2024',y:[92.30,93.10,91.00,92.70]},{ x:'06/14/2024',y:[92.10,101.50,92.10,100.00]},{ x:'06/17/2024',y:[100.00,110.00,99.10,109.00]},{ x:'06/18/2024',y:[108.00,108.50,102.00,103.00]},{ x:'06/19/2024',y:[104.50,107.50,102.50,103.50]},{ x:'06/20/2024',y:[105.50,106.50,102.50,105.00]},{ x:'06/21/2024',y:[104.00,105.00,102.00,102.50]},{ x:'06/24/2024',y:[103.50,104.50,99.20,99.20]},{ x:'06/25/2024',y:[98.00,100.00,95.80,98.70]},{ x:'06/26/2024',y:[100.00,105.00,98.50,103.50]},{ x:'06/27/2024',y:[102.50,104.50,101.50,104.00]},{ x:'06/28/2024',y:[108.00,108.00,104.50,107.00]},{ x:'07/01/2024',y:[111.00,117.00,108.00,111.00]},{ x:'07/02/2024',y:[110.00,112.50,109.00,110.00]},{ x:'07/03/2024',y:[112.00,116.50,111.00,114.50]},{ x:'07/04/2024',y:[117.00,117.00,109.00,109.00]},{ x:'07/05/2024',y:[109.50,110.00,106.50,110.00]},{ x:'07/12/2024',y:[99.40,99.90,97.20,99.00]},{ x:'07/15/2024',y:[99.00,99.00,97.50,97.60]},{ x:'07/16/2024',y:[97.00,98.20,95.80,97.60]},{ x:'07/17/2024',y:[97.30,102.00,96.90,100.50]},{ x:'07/18/2024',y:[98.90,99.50,97.60,98.20]},{ x:'07/19/2024',y:[98.20,98.20,95.40,95.70]},{ x:'07/22/2024',y:[95.70,96.10,89.00,91.30]},{ x:'07/23/2024',y:[93.40,93.40,88.70,89.10]},{ x:'07/26/2024',y:[86.00,86.40,83.00,84.80]},{ x:'07/29/2024',y:[85.00,90.50,85.00,88.10]},{ x:'07/30/2024',y:[86.20,89.00,85.40,89.00]},{ x:'07/31/2024',y:[88.10,88.70,86.90,88.60]},{ x:'08/01/2024',y:[91.20,91.20,87.50,87.50]},{ x:'08/02/2024',y:[87.50,87.50,79.90,80.50]},{ x:'08/05/2024',y:[77.00,77.00,72.50,72.50]},{ x:'08/06/2024',y:[74.00,74.00,65.30,66.50]},{ x:'08/07/2024',y:[67.50,73.10,67.20,73.10]},{ x:'08/08/2024',y:[73.30,73.30,68.20,70.90]},{ x:'08/09/2024',y:[73.00,73.40,69.30,70.00]},{ x:'08/12/2024',y:[72.00,72.00,69.10,70.40]},{ x:'08/13/2024',y:[72.10,72.10,66.80,70.00]},{ x:'08/14/2024',y:[71.40,71.40,68.70,69.00]},{ x:'08/15/2024',y:[69.70,69.80,66.50,67.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8084 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());