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/25/2024',y:[101.10,101.10,100.75,101.05]},{ x:'03/26/2024',y:[101.65,101.65,99.95,100.60]},{ x:'03/27/2024',y:[100.50,100.90,100.50,100.90]},{ x:'03/28/2024',y:[100.95,100.95,100.20,100.80]},{ x:'03/29/2024',y:[100.95,101.25,100.95,101.25]},{ x:'04/01/2024',y:[101.15,101.15,101.00,101.05]},{ x:'04/02/2024',y:[101.75,102.05,101.75,102.05]},{ x:'04/03/2024',y:[101.60,101.60,101.45,101.50]},{ x:'04/08/2024',y:[101.50,102.00,101.50,102.00]},{ x:'04/09/2024',y:[102.85,103.70,102.85,103.70]},{ x:'04/10/2024',y:[103.45,103.70,103.45,103.60]},{ x:'04/11/2024',y:[103.05,103.05,102.85,102.95]},{ x:'04/12/2024',y:[103.00,103.45,103.00,103.15]},{ x:'04/15/2024',y:[102.45,102.45,101.75,101.85]},{ x:'04/16/2024',y:[100.00,100.00,98.80,98.85]},{ x:'04/17/2024',y:[99.50,100.40,99.50,100.25]},{ x:'04/18/2024',y:[99.80,100.65,99.80,100.60]},{ x:'04/19/2024',y:[97.90,97.90,96.90,97.20]},{ x:'04/22/2024',y:[97.25,97.35,96.85,96.85]},{ 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]} ] }], 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());