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/26/2024',y:[376.00,386.50,375.00,380.00]},{ x:'04/29/2024',y:[387.00,393.50,386.50,389.00]},{ x:'04/30/2024',y:[392.50,392.50,382.50,387.00]},{ x:'05/02/2024',y:[385.00,387.00,379.00,383.00]},{ x:'05/03/2024',y:[390.00,390.00,380.50,382.00]},{ x:'05/06/2024',y:[385.50,390.00,380.50,387.50]},{ x:'05/07/2024',y:[385.50,386.50,379.00,381.00]},{ x:'05/08/2024',y:[380.50,388.00,379.50,388.00]},{ x:'05/09/2024',y:[390.00,390.00,375.50,375.50]},{ x:'05/10/2024',y:[380.00,380.00,368.00,372.00]},{ x:'05/13/2024',y:[378.00,383.50,374.00,383.50]},{ x:'05/14/2024',y:[380.00,393.00,380.00,392.00]},{ x:'05/15/2024',y:[392.50,396.50,388.50,391.00]},{ x:'05/16/2024',y:[393.00,396.50,389.50,394.00]},{ x:'05/17/2024',y:[394.00,396.50,391.50,392.00]},{ x:'05/20/2024',y:[396.00,396.50,390.00,391.00]},{ x:'05/21/2024',y:[391.00,394.00,386.00,386.50]},{ x:'05/22/2024',y:[387.00,394.00,387.00,392.50]},{ x:'05/23/2024',y:[394.00,394.00,384.00,384.00]},{ x:'05/24/2024',y:[384.00,391.00,381.00,390.00]},{ x:'06/11/2024',y:[423.00,423.00,406.50,409.00]},{ x:'06/12/2024',y:[413.00,421.50,409.50,410.00]},{ x:'06/13/2024',y:[413.50,423.00,413.50,422.00]},{ x:'06/14/2024',y:[422.50,435.00,417.50,423.00]},{ x:'06/17/2024',y:[428.50,428.50,421.00,423.00]},{ x:'06/18/2024',y:[428.00,434.50,427.00,430.00]},{ x:'06/19/2024',y:[431.50,438.00,428.00,432.50]},{ x:'06/20/2024',y:[432.50,441.00,432.00,432.50]},{ x:'06/21/2024',y:[432.50,434.50,428.50,429.50]},{ x:'06/24/2024',y:[430.00,438.00,424.50,433.50]},{ x:'06/25/2024',y:[436.00,437.00,418.50,420.50]},{ x:'06/26/2024',y:[423.00,434.50,421.50,422.00]},{ x:'06/27/2024',y:[422.00,425.50,413.00,415.50]},{ x:'06/28/2024',y:[418.00,433.00,418.00,432.50]},{ x:'07/01/2024',y:[435.00,436.50,422.00,423.00]},{ x:'07/02/2024',y:[428.00,428.00,418.00,420.00]},{ x:'07/03/2024',y:[423.50,428.00,421.00,425.50]},{ x:'07/04/2024',y:[430.00,433.50,426.00,429.00]},{ x:'07/05/2024',y:[431.00,436.00,429.00,431.50]},{ x:'07/12/2024',y:[413.50,427.00,408.00,424.50]},{ x:'07/15/2024',y:[425.50,427.00,416.00,416.00]},{ x:'07/16/2024',y:[419.00,431.00,418.00,420.50]},{ x:'07/17/2024',y:[426.00,426.00,416.50,416.50]},{ x:'07/18/2024',y:[413.50,413.50,400.50,406.50]},{ x:'07/19/2024',y:[404.00,407.50,395.00,395.50]},{ x:'07/22/2024',y:[401.00,401.00,382.00,389.50]},{ x:'07/23/2024',y:[393.50,399.50,393.00,393.50]},{ x:'07/26/2024',y:[381.50,386.00,377.00,380.00]},{ x:'07/29/2024',y:[388.50,389.00,369.00,369.00]},{ x:'07/30/2024',y:[369.00,379.50,369.00,379.00]},{ x:'07/31/2024',y:[373.50,381.50,372.50,372.50]},{ x:'08/01/2024',y:[379.50,383.00,377.00,382.50]},{ x:'08/02/2024',y:[375.50,375.50,351.00,352.00]},{ x:'08/05/2024',y:[334.00,334.50,317.00,317.00]},{ x:'08/06/2024',y:[300.00,315.50,285.50,291.50]},{ x:'08/07/2024',y:[286.00,320.50,286.00,320.50]},{ x:'08/08/2024',y:[308.50,327.00,308.50,322.00]},{ x:'08/09/2024',y:[330.00,337.50,325.50,334.00]},{ x:'08/12/2024',y:[338.00,344.00,337.00,338.50]},{ x:'08/13/2024',y:[338.50,345.50,334.00,344.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6533 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());