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:[30.90,30.90,30.50,30.70]},{ x:'04/26/2024',y:[30.85,31.55,30.85,30.90]},{ x:'04/29/2024',y:[30.85,31.20,30.70,30.80]},{ x:'04/30/2024',y:[30.90,31.10,30.80,31.10]},{ x:'05/02/2024',y:[31.10,31.50,31.05,31.30]},{ x:'05/03/2024',y:[31.25,31.25,30.65,30.70]},{ x:'05/06/2024',y:[30.80,30.85,30.45,30.60]},{ x:'05/07/2024',y:[30.90,30.90,30.50,30.80]},{ x:'05/08/2024',y:[30.55,30.60,30.00,30.25]},{ x:'05/09/2024',y:[30.25,30.65,30.25,30.65]},{ x:'05/10/2024',y:[30.80,30.80,30.30,30.70]},{ x:'05/13/2024',y:[30.95,30.95,30.10,30.20]},{ x:'05/14/2024',y:[30.25,30.30,30.05,30.20]},{ x:'05/15/2024',y:[30.70,31.20,30.40,30.40]},{ x:'05/16/2024',y:[31.00,31.00,30.50,30.50]},{ x:'05/17/2024',y:[30.60,30.95,30.55,30.55]},{ x:'05/20/2024',y:[30.40,30.75,30.30,30.65]},{ x:'05/21/2024',y:[30.70,30.90,30.45,30.85]},{ x:'05/22/2024',y:[32.00,33.90,32.00,33.90]},{ x:'05/23/2024',y:[37.25,37.25,37.25,37.25]},{ x:'05/24/2024',y:[40.95,40.95,40.95,40.95]},{ x:'06/11/2024',y:[68.80,68.80,60.30,60.30]},{ x:'06/12/2024',y:[60.00,66.30,59.90,66.30]},{ x:'06/13/2024',y:[66.60,72.90,66.60,68.20]},{ x:'06/14/2024',y:[68.50,72.00,68.00,72.00]},{ x:'06/17/2024',y:[73.10,79.20,73.10,79.20]},{ x:'06/18/2024',y:[82.00,87.10,82.00,87.10]},{ x:'06/19/2024',y:[87.10,87.10,78.40,78.40]},{ x:'06/20/2024',y:[75.00,86.00,74.00,83.50]},{ x:'06/21/2024',y:[80.60,87.90,79.60,84.00]},{ x:'06/24/2024',y:[83.40,84.70,79.00,79.50]},{ x:'06/25/2024',y:[80.00,84.50,80.00,82.00]},{ x:'06/26/2024',y:[82.20,83.30,79.50,79.60]},{ x:'06/27/2024',y:[79.40,79.90,74.80,74.80]},{ x:'06/28/2024',y:[74.40,82.20,74.40,82.20]},{ x:'07/01/2024',y:[90.40,90.40,83.00,90.40]},{ x:'07/02/2024',y:[90.80,99.40,90.40,99.40]},{ x:'07/03/2024',y:[103.50,109.00,103.50,109.00]},{ x:'07/04/2024',y:[119.50,119.50,119.50,119.50]},{ x:'07/05/2024',y:[125.50,131.00,125.00,131.00]},{ x:'07/12/2024',y:[102.00,105.00,102.00,103.50]},{ x:'07/15/2024',y:[106.00,113.50,105.00,110.00]},{ x:'07/16/2024',y:[110.00,112.50,105.00,106.00]},{ x:'07/17/2024',y:[109.50,114.00,109.50,112.50]},{ x:'07/18/2024',y:[110.00,114.50,110.00,114.00]},{ x:'07/19/2024',y:[114.50,114.50,111.00,114.00]},{ x:'07/22/2024',y:[115.00,125.00,114.50,125.00]},{ x:'07/23/2024',y:[137.50,137.50,122.50,132.00]},{ x:'07/26/2024',y:[125.00,131.50,119.50,122.50]},{ x:'07/29/2024',y:[122.50,130.00,110.50,110.50]},{ x:'07/30/2024',y:[106.50,108.00,99.50,106.00]},{ x:'07/31/2024',y:[104.00,106.50,99.60,101.00]},{ x:'08/01/2024',y:[106.00,111.00,106.00,111.00]},{ x:'08/02/2024',y:[111.00,122.00,106.50,122.00]},{ x:'08/05/2024',y:[120.00,124.00,110.00,110.00]},{ x:'08/06/2024',y:[117.00,119.00,99.00,100.00]},{ x:'08/07/2024',y:[102.00,110.00,102.00,110.00]},{ x:'08/08/2024',y:[113.00,121.00,109.00,121.00]},{ x:'08/09/2024',y:[128.00,133.00,127.00,133.00]},{ x:'08/12/2024',y:[138.00,140.50,120.50,122.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8374 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());