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/23/2024',y:[97.50,97.85,97.50,97.85]},{ x:'04/24/2024',y:[99.80,100.30,99.80,100.20]},{ x:'04/25/2024',y:[99.15,99.15,98.55,98.55]},{ x:'04/26/2024',y:[100.00,100.15,100.00,100.15]},{ x:'04/29/2024',y:[101.40,101.70,101.40,101.70]},{ x:'04/30/2024',y:[101.95,101.95,101.75,101.75]},{ x:'05/02/2024',y:[100.65,100.65,100.50,100.50]},{ x:'05/03/2024',y:[101.75,101.75,101.15,101.15]},{ x:'05/06/2024',y:[102.50,102.50,102.00,102.35]},{ x:'05/07/2024',y:[102.30,102.65,102.30,102.65]},{ x:'05/08/2024',y:[102.35,103.10,102.35,103.10]},{ x:'05/09/2024',y:[102.95,103.05,102.90,103.00]},{ x:'05/10/2024',y:[102.95,102.95,102.95,102.95]},{ x:'05/13/2024',y:[103.90,104.05,103.75,103.85]},{ x:'05/14/2024',y:[104.55,104.55,104.30,104.30]},{ x:'05/15/2024',y:[105.55,106.00,105.55,105.85]},{ x:'05/16/2024',y:[107.10,107.10,106.30,106.30]},{ x:'05/17/2024',y:[105.85,105.85,105.85,105.85]},{ x:'05/20/2024',y:[105.80,106.00,105.20,105.55]},{ x:'05/21/2024',y:[105.40,105.40,105.20,105.20]},{ x:'05/22/2024',y:[105.90,106.85,105.80,106.85]},{ x:'05/23/2024',y:[107.35,107.45,107.35,107.45]},{ x:'05/24/2024',y:[107.50,107.50,107.50,107.50]},{ x:'06/11/2024',y:[108.60,109.00,108.55,108.60]},{ x:'06/12/2024',y:[108.80,109.45,108.60,109.45]},{ x:'06/13/2024',y:[110.60,111.20,110.55,110.90]},{ x:'06/14/2024',y:[111.60,111.60,111.60,111.60]},{ x:'06/17/2024',y:[111.70,111.75,111.65,111.70]},{ x:'06/18/2024',y:[112.80,113.25,112.70,113.25]},{ x:'06/19/2024',y:[114.60,115.45,114.60,115.45]},{ x:'06/20/2024',y:[116.25,116.45,116.25,116.45]},{ x:'06/21/2024',y:[115.70,116.20,115.45,116.20]},{ x:'06/24/2024',y:[115.00,115.00,113.95,113.95]},{ x:'06/25/2024',y:[113.20,113.60,112.40,113.60]},{ x:'06/26/2024',y:[114.15,114.20,114.15,114.20]},{ x:'06/27/2024',y:[113.45,114.10,113.45,114.10]},{ x:'06/28/2024',y:[114.10,115.20,114.10,115.00]},{ x:'07/01/2024',y:[115.30,115.50,115.15,115.15]},{ x:'07/02/2024',y:[114.25,114.50,113.95,114.15]},{ x:'07/03/2024',y:[115.15,115.50,115.15,115.50]},{ x:'07/04/2024',y:[117.10,117.25,117.10,117.25]},{ x:'07/05/2024',y:[117.95,117.95,117.40,117.40]},{ x:'07/12/2024',y:[119.75,119.75,119.15,119.25]},{ x:'07/15/2024',y:[119.80,119.80,119.10,119.25]},{ x:'07/16/2024',y:[119.55,120.45,119.55,119.60]},{ x:'07/17/2024',y:[119.40,119.40,118.15,118.15]},{ x:'07/18/2024',y:[116.50,116.50,116.50,116.50]},{ x:'07/19/2024',y:[115.85,116.00,115.00,115.15]},{ x:'07/22/2024',y:[112.70,112.70,111.90,111.90]},{ x:'07/23/2024',y:[113.35,114.55,113.35,114.55]},{ x:'07/26/2024',y:[110.35,111.35,110.35,111.15]},{ x:'07/29/2024',y:[113.15,113.15,112.00,112.00]},{ x:'07/30/2024',y:[110.10,111.45,110.10,111.45]},{ x:'07/31/2024',y:[111.45,111.55,111.45,111.55]},{ x:'08/01/2024',y:[113.15,113.70,113.15,113.70]},{ x:'08/02/2024',y:[108.55,108.80,108.55,108.80]},{ x:'08/05/2024',y:[104.00,104.00,99.80,99.80]},{ x:'08/06/2024',y:[102.40,104.75,100.00,104.75]},{ x:'08/07/2024',y:[105.45,107.45,105.45,107.45]},{ x:'08/08/2024',y:[105.95,105.95,105.95,105.95]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006204 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());