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:[92.90,93.30,92.70,92.70]},{ x:'05/02/2024',y:[92.20,92.20,91.30,91.50]},{ x:'05/03/2024',y:[93.00,93.00,91.60,92.00]},{ x:'05/06/2024',y:[93.00,93.80,93.00,93.30]},{ x:'05/07/2024',y:[93.70,93.95,93.30,93.75]},{ x:'05/08/2024',y:[93.70,94.15,93.45,94.10]},{ x:'05/09/2024',y:[94.10,94.45,93.90,94.00]},{ x:'05/10/2024',y:[94.45,94.95,94.05,94.75]},{ x:'05/13/2024',y:[95.65,96.00,95.35,95.40]},{ x:'05/14/2024',y:[95.30,96.15,95.20,96.15]},{ x:'05/15/2024',y:[96.65,98.20,96.65,97.50]},{ x:'05/16/2024',y:[98.70,99.30,97.85,98.10]},{ x:'05/17/2024',y:[98.10,98.20,97.65,97.80]},{ x:'05/20/2024',y:[97.90,98.00,96.75,97.65]},{ x:'05/21/2024',y:[97.60,97.75,97.05,97.60]},{ x:'05/22/2024',y:[97.75,99.55,97.75,99.50]},{ x:'05/23/2024',y:[99.90,100.30,99.55,100.20]},{ x:'05/24/2024',y:[99.50,100.05,99.00,99.90]},{ x:'06/11/2024',y:[101.40,102.00,101.15,101.30]},{ x:'06/12/2024',y:[101.30,103.25,101.30,103.15]},{ x:'06/13/2024',y:[104.75,105.65,103.90,104.55]},{ x:'06/14/2024',y:[104.50,105.25,103.90,105.25]},{ x:'06/17/2024',y:[105.20,105.65,104.75,105.20]},{ x:'06/18/2024',y:[106.40,107.25,106.40,106.95]},{ x:'06/19/2024',y:[107.50,110.60,107.50,110.25]},{ x:'06/20/2024',y:[110.25,110.95,110.00,110.85]},{ x:'06/21/2024',y:[109.90,110.60,109.45,110.00]},{ x:'06/24/2024',y:[108.90,109.00,107.55,107.60]},{ x:'06/25/2024',y:[106.90,107.60,105.85,107.45]},{ x:'06/26/2024',y:[108.25,108.95,107.90,108.45]},{ x:'06/27/2024',y:[107.50,108.40,107.40,108.25]},{ x:'06/28/2024',y:[108.25,109.65,108.15,109.20]},{ x:'07/01/2024',y:[109.25,110.20,109.20,109.40]},{ x:'07/02/2024',y:[109.05,109.50,108.20,108.60]},{ x:'07/03/2024',y:[110.00,110.00,109.20,109.85]},{ x:'07/04/2024',y:[111.60,112.75,111.60,112.65]},{ x:'07/05/2024',y:[112.70,112.95,112.30,112.40]},{ x:'07/12/2024',y:[116.65,116.75,115.35,115.60]},{ x:'07/15/2024',y:[117.00,117.00,115.30,115.40]},{ x:'07/16/2024',y:[115.05,116.60,114.70,115.20]},{ x:'07/17/2024',y:[114.95,115.00,113.40,113.70]},{ x:'07/18/2024',y:[111.10,111.75,110.15,111.40]},{ x:'07/19/2024',y:[110.45,110.65,109.00,109.00]},{ x:'07/22/2024',y:[108.75,108.75,105.40,105.60]},{ x:'07/23/2024',y:[107.80,108.65,107.35,108.65]},{ x:'07/26/2024',y:[103.85,105.05,103.60,104.80]},{ x:'07/29/2024',y:[106.00,106.70,105.20,105.65]},{ x:'07/30/2024',y:[104.70,106.00,103.90,105.75]},{ x:'07/31/2024',y:[104.90,105.95,104.50,105.65]},{ x:'08/01/2024',y:[108.10,108.30,106.75,107.55]},{ x:'08/02/2024',y:[104.50,104.70,102.40,102.40]},{ x:'08/05/2024',y:[97.35,97.35,93.55,93.70]},{ x:'08/06/2024',y:[97.40,99.60,94.35,97.55]},{ x:'08/07/2024',y:[98.95,101.75,98.85,101.50]},{ x:'08/08/2024',y:[99.85,100.85,98.90,99.70]},{ x:'08/09/2024',y:[102.95,103.40,101.85,102.70]},{ x:'08/12/2024',y:[103.75,104.95,103.50,104.05]},{ x:'08/13/2024',y:[105.00,105.00,104.15,104.40]},{ x:'08/14/2024',y:[106.00,106.35,105.40,105.65]},{ x:'08/15/2024',y:[105.60,105.85,104.85,105.05]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006208 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());