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:'01/22/2024',y:[408.00,414.50,406.00,412.00]},{ x:'01/23/2024',y:[413.00,419.00,412.00,417.50]},{ x:'01/24/2024',y:[419.50,421.50,415.00,416.00]},{ x:'01/25/2024',y:[418.50,420.00,408.50,409.50]},{ x:'01/26/2024',y:[407.50,429.00,406.50,424.50]},{ x:'01/29/2024',y:[436.00,445.00,426.00,434.00]},{ x:'01/30/2024',y:[436.50,446.50,425.00,443.50]},{ x:'01/31/2024',y:[441.00,452.00,436.00,450.00]},{ x:'02/01/2024',y:[447.00,447.00,438.00,443.00]},{ x:'02/02/2024',y:[447.50,449.50,435.50,435.50]},{ x:'02/05/2024',y:[440.50,440.50,429.50,431.00]},{ x:'02/15/2024',y:[451.00,455.00,435.00,450.50]},{ x:'02/16/2024',y:[450.00,451.00,443.50,447.00]},{ x:'02/19/2024',y:[452.00,465.00,448.00,455.50]},{ x:'02/20/2024',y:[461.50,462.50,450.50,451.00]},{ x:'02/21/2024',y:[448.00,452.00,441.50,443.50]},{ x:'02/22/2024',y:[447.50,448.50,438.50,441.50]},{ x:'02/23/2024',y:[443.50,468.00,437.00,457.00]},{ x:'02/26/2024',y:[479.50,486.50,468.00,468.00]},{ x:'02/27/2024',y:[468.50,483.00,448.50,460.00]},{ x:'02/29/2024',y:[459.00,475.00,454.00,468.50]},{ x:'03/01/2024',y:[475.50,478.00,467.00,473.00]},{ x:'03/04/2024',y:[478.00,484.50,471.00,472.00]},{ x:'03/05/2024',y:[474.00,474.00,457.50,458.00]},{ x:'03/06/2024',y:[457.50,457.50,450.50,450.50]},{ x:'03/07/2024',y:[452.00,455.00,430.00,430.00]},{ x:'03/08/2024',y:[434.50,436.50,410.50,417.50]},{ x:'03/11/2024',y:[416.50,422.00,409.00,409.00]},{ x:'03/12/2024',y:[412.00,428.00,411.00,413.00]},{ x:'03/13/2024',y:[420.00,420.00,399.00,402.50]},{ x:'03/14/2024',y:[401.00,409.00,396.50,402.50]},{ x:'03/15/2024',y:[400.00,406.00,398.00,402.50]},{ x:'03/18/2024',y:[405.50,407.50,401.50,407.50]},{ x:'03/19/2024',y:[407.50,409.50,399.00,401.00]},{ x:'03/20/2024',y:[401.00,406.00,400.50,401.00]},{ x:'03/21/2024',y:[401.50,407.00,401.00,406.50]},{ x:'03/22/2024',y:[406.00,417.50,403.00,415.00]},{ x:'03/25/2024',y:[417.50,428.00,414.00,423.50]},{ x:'03/26/2024',y:[423.50,424.00,406.00,407.50]},{ x:'03/27/2024',y:[408.00,414.00,407.50,409.00]},{ x:'03/28/2024',y:[411.50,412.50,404.50,405.00]},{ x:'03/29/2024',y:[404.50,410.00,404.50,408.00]},{ x:'04/01/2024',y:[410.00,415.00,409.00,409.00]},{ x:'04/02/2024',y:[410.50,425.00,410.50,424.50]},{ x:'04/03/2024',y:[415.00,422.00,415.00,419.50]},{ x:'04/08/2024',y:[421.50,423.00,416.50,421.50]},{ x:'04/09/2024',y:[408.00,408.00,384.00,385.00]},{ x:'04/10/2024',y:[385.50,390.00,385.00,385.50]},{ x:'04/11/2024',y:[385.00,387.00,377.50,380.00]},{ x:'04/12/2024',y:[385.00,389.50,380.50,387.50]},{ x:'04/15/2024',y:[387.50,387.50,383.50,385.00]},{ x:'04/16/2024',y:[381.00,388.50,375.50,381.00]},{ x:'04/17/2024',y:[382.50,385.00,375.00,377.00]},{ x:'04/18/2024',y:[364.50,366.00,344.00,346.00]},{ x:'04/19/2024',y:[338.00,345.00,325.50,327.00]},{ x:'04/22/2024',y:[323.50,332.50,320.50,321.00]},{ x:'04/23/2024',y:[327.50,330.00,323.00,325.50]},{ x:'04/24/2024',y:[328.00,339.00,328.00,337.50]},{ x:'04/25/2024',y:[337.50,337.50,328.50,329.00]},{ x:'04/26/2024',y:[329.50,341.00,329.50,335.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6732 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());