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:[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]},{ x:'07/12/2024',y:[578.00,588.00,566.00,571.00]},{ x:'07/15/2024',y:[571.00,571.00,539.00,542.00]},{ x:'07/16/2024',y:[542.00,548.00,535.00,544.00]},{ x:'07/17/2024',y:[540.00,545.00,523.00,526.00]},{ x:'07/18/2024',y:[515.00,515.00,497.00,503.00]},{ x:'07/19/2024',y:[501.00,523.00,495.00,521.00]},{ x:'07/22/2024',y:[516.00,528.00,501.00,511.00]},{ x:'07/23/2024',y:[518.00,522.00,501.00,512.00]},{ x:'07/26/2024',y:[485.00,516.00,485.00,511.00]},{ x:'07/29/2024',y:[522.00,536.00,503.00,505.00]},{ x:'07/30/2024',y:[505.00,512.00,497.50,510.00]},{ x:'07/31/2024',y:[498.00,511.00,496.00,507.00]},{ x:'08/01/2024',y:[521.00,528.00,515.00,520.00]},{ x:'08/02/2024',y:[510.00,521.00,495.00,496.00]},{ x:'08/05/2024',y:[470.00,470.00,446.50,446.50]},{ x:'08/06/2024',y:[465.00,468.50,426.50,453.50]},{ x:'08/07/2024',y:[451.50,498.50,450.00,495.50]},{ x:'08/08/2024',y:[489.50,511.00,489.50,491.00]},{ x:'08/09/2024',y:[502.00,505.00,491.00,493.00]},{ x:'08/12/2024',y:[495.50,518.00,495.50,509.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());