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/26/2024',y:[480.00,480.00,463.50,465.50]},{ x:'03/27/2024',y:[460.00,466.50,452.00,453.00]},{ x:'03/28/2024',y:[451.00,462.00,448.00,458.50]},{ x:'03/29/2024',y:[458.50,466.00,458.00,463.00]},{ x:'04/01/2024',y:[465.50,470.00,458.00,460.50]},{ x:'04/02/2024',y:[466.00,471.00,451.50,456.00]},{ x:'04/03/2024',y:[454.50,463.50,449.00,461.00]},{ x:'04/08/2024',y:[457.00,477.00,457.00,466.00]},{ x:'04/09/2024',y:[498.00,498.00,462.50,465.00]},{ x:'04/10/2024',y:[468.50,482.50,466.00,476.00]},{ x:'04/11/2024',y:[476.00,484.00,472.50,473.00]},{ x:'04/12/2024',y:[468.50,471.50,456.00,456.00]},{ x:'04/15/2024',y:[450.00,451.50,431.00,431.00]},{ x:'04/16/2024',y:[431.00,431.00,415.50,416.50]},{ x:'04/17/2024',y:[409.50,420.00,407.50,408.00]},{ x:'04/18/2024',y:[404.50,412.00,401.50,409.00]},{ x:'04/19/2024',y:[402.00,406.50,387.00,401.00]},{ x:'04/22/2024',y:[395.50,399.50,383.00,384.50]},{ x:'04/23/2024',y:[397.00,410.50,394.00,405.00]},{ x:'04/24/2024',y:[425.50,427.00,408.00,412.00]},{ x:'04/25/2024',y:[410.00,415.00,401.00,401.00]},{ x:'04/26/2024',y:[405.00,432.00,405.00,428.00]},{ x:'04/29/2024',y:[450.00,467.00,447.00,447.50]},{ x:'04/30/2024',y:[448.00,482.00,448.00,461.50]},{ x:'05/02/2024',y:[456.00,478.00,452.00,469.00]},{ x:'05/03/2024',y:[470.00,470.50,435.50,442.50]},{ x:'05/06/2024',y:[450.00,464.50,446.00,458.50]},{ x:'05/07/2024',y:[458.00,460.00,440.00,446.00]},{ x:'05/08/2024',y:[446.00,455.00,438.00,445.00]},{ x:'05/09/2024',y:[443.50,454.50,442.00,444.00]},{ x:'05/10/2024',y:[455.00,475.00,454.50,461.50]},{ x:'05/13/2024',y:[461.50,463.00,450.00,454.00]},{ x:'05/14/2024',y:[462.50,472.00,462.50,470.00]},{ x:'05/15/2024',y:[468.50,474.00,461.50,469.50]},{ x:'05/16/2024',y:[485.00,504.00,484.50,494.50]},{ x:'05/17/2024',y:[493.50,505.00,489.00,499.50]},{ x:'05/20/2024',y:[500.00,506.00,496.50,504.00]},{ x:'05/21/2024',y:[504.00,505.00,495.00,500.00]},{ x:'05/22/2024',y:[498.00,512.00,498.00,506.00]},{ x:'05/23/2024',y:[506.00,515.00,500.00,510.00]},{ x:'05/24/2024',y:[510.00,526.00,506.00,512.00]},{ x:'06/11/2024',y:[545.00,548.00,524.00,529.00]},{ x:'06/12/2024',y:[526.00,548.00,525.00,536.00]},{ x:'06/13/2024',y:[547.00,554.00,537.00,543.00]},{ x:'06/14/2024',y:[581.00,581.00,546.00,556.00]},{ x:'06/17/2024',y:[557.00,559.00,539.00,543.00]},{ x:'06/18/2024',y:[543.00,549.00,536.00,545.00]},{ x:'06/19/2024',y:[550.00,554.00,543.00,552.00]},{ x:'06/20/2024',y:[552.00,558.00,548.00,553.00]},{ x:'06/21/2024',y:[551.00,563.00,549.00,555.00]},{ x:'06/24/2024',y:[555.00,557.00,537.00,537.00]},{ x:'06/25/2024',y:[531.00,534.00,521.00,532.00]},{ x:'06/26/2024',y:[528.00,540.00,526.00,535.00]},{ x:'06/27/2024',y:[529.00,539.00,529.00,535.00]},{ x:'06/28/2024',y:[541.00,562.00,541.00,555.00]},{ x:'07/01/2024',y:[555.00,563.00,547.00,549.00]},{ x:'07/02/2024',y:[546.00,554.00,538.00,551.00]},{ x:'07/03/2024',y:[552.00,556.00,543.00,543.00]},{ x:'07/04/2024',y:[554.00,574.00,550.00,571.00]},{ x:'07/05/2024',y:[569.00,570.00,557.00,557.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2345 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());