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:'02/01/2024',y:[452.00,452.00,432.00,437.00]},{ x:'02/02/2024',y:[432.50,445.00,425.50,426.00]},{ x:'02/05/2024',y:[430.50,430.50,418.00,419.50]},{ x:'02/15/2024',y:[421.00,432.00,416.00,432.00]},{ x:'02/16/2024',y:[429.00,432.00,425.00,432.00]},{ x:'02/19/2024',y:[432.00,432.50,425.00,432.00]},{ x:'02/20/2024',y:[430.00,432.00,425.00,427.00]},{ x:'02/21/2024',y:[427.00,431.00,427.00,428.00]},{ x:'02/22/2024',y:[428.00,428.50,425.00,428.00]},{ x:'02/23/2024',y:[428.00,431.00,426.50,431.00]},{ x:'02/26/2024',y:[431.00,433.00,420.00,421.00]},{ x:'02/27/2024',y:[423.50,430.00,419.00,419.00]},{ x:'02/29/2024',y:[420.00,425.00,420.00,423.50]},{ x:'03/01/2024',y:[423.50,426.50,422.50,423.00]},{ x:'03/04/2024',y:[423.00,425.00,422.00,423.00]},{ x:'03/05/2024',y:[423.00,425.00,423.00,423.50]},{ x:'03/06/2024',y:[425.00,425.00,421.00,421.50]},{ x:'03/07/2024',y:[421.50,422.00,414.50,414.50]},{ x:'03/08/2024',y:[416.00,419.00,403.50,407.00]},{ x:'03/11/2024',y:[413.00,418.00,409.00,418.00]},{ x:'03/12/2024',y:[418.00,418.00,418.00,418.00]},{ x:'03/13/2024',y:[418.00,420.50,412.00,412.00]},{ x:'03/14/2024',y:[414.00,427.00,414.00,420.00]},{ x:'03/15/2024',y:[418.00,424.50,418.00,419.00]},{ x:'03/18/2024',y:[440.00,440.00,419.00,423.00]},{ x:'03/19/2024',y:[428.50,428.50,423.50,424.00]},{ x:'03/20/2024',y:[424.00,424.00,415.00,415.50]},{ x:'03/21/2024',y:[421.50,421.50,414.00,416.00]},{ x:'03/22/2024',y:[416.00,418.50,412.50,418.00]},{ x:'03/25/2024',y:[423.50,424.00,418.00,422.50]},{ x:'03/26/2024',y:[416.50,416.50,411.00,411.00]},{ x:'03/27/2024',y:[411.00,415.00,411.00,411.00]},{ x:'03/28/2024',y:[412.00,414.00,409.00,409.00]},{ x:'03/29/2024',y:[410.00,412.00,406.50,406.50]},{ x:'04/01/2024',y:[406.00,411.00,406.00,409.00]},{ x:'04/02/2024',y:[410.00,414.00,410.00,412.00]},{ x:'04/03/2024',y:[414.00,414.00,405.00,405.50]},{ x:'04/08/2024',y:[408.50,410.50,408.50,410.50]},{ x:'04/09/2024',y:[409.50,409.50,404.00,408.00]},{ x:'04/10/2024',y:[408.00,413.50,406.00,413.50]},{ x:'04/11/2024',y:[408.50,408.50,407.00,407.00]},{ x:'04/12/2024',y:[409.00,411.50,408.00,409.00]},{ x:'04/15/2024',y:[409.00,409.00,404.50,404.50]},{ x:'04/16/2024',y:[403.50,403.50,395.00,396.00]},{ x:'04/17/2024',y:[400.00,402.00,397.50,399.50]},{ x:'04/18/2024',y:[398.50,400.00,397.50,397.50]},{ x:'04/19/2024',y:[396.00,396.00,389.00,390.00]},{ x:'04/22/2024',y:[390.00,391.00,377.00,377.00]},{ x:'04/23/2024',y:[380.00,387.50,379.00,383.00]},{ x:'04/24/2024',y:[389.00,402.50,389.00,401.00]},{ x:'04/25/2024',y:[401.00,408.00,390.50,391.50]},{ x:'04/26/2024',y:[393.00,395.50,390.00,391.50]},{ x:'04/29/2024',y:[397.50,404.50,395.50,399.00]},{ x:'04/30/2024',y:[399.00,400.00,396.00,396.00]},{ x:'05/02/2024',y:[391.50,399.50,391.50,396.00]},{ x:'05/03/2024',y:[407.00,407.00,398.00,399.00]},{ x:'05/06/2024',y:[400.50,400.50,393.00,394.00]},{ x:'05/07/2024',y:[394.50,395.00,387.00,387.50]},{ x:'05/08/2024',y:[396.00,426.00,396.00,426.00]},{ x:'05/09/2024',y:[426.00,444.00,420.00,426.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6763 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());