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/20/2023',y:[412.00,414.00,401.00,405.50]},{ x:'04/21/2023',y:[405.50,411.50,393.00,396.00]},{ x:'04/24/2023',y:[396.00,398.00,388.50,393.00]},{ x:'04/25/2023',y:[395.00,398.00,385.00,388.50]},{ x:'04/26/2023',y:[388.50,394.50,383.00,390.50]},{ x:'04/27/2023',y:[391.50,403.00,386.00,399.50]},{ x:'04/28/2023',y:[405.00,409.50,402.00,404.00]},{ x:'05/02/2023',y:[408.00,417.00,405.00,413.00]},{ x:'05/03/2023',y:[412.00,425.00,408.00,418.50]},{ x:'05/04/2023',y:[422.50,424.50,417.50,417.50]},{ x:'05/05/2023',y:[417.50,421.00,415.50,418.00]},{ x:'05/08/2023',y:[420.00,434.50,420.00,434.50]},{ x:'05/09/2023',y:[435.00,438.50,425.00,429.00]},{ x:'05/10/2023',y:[426.00,432.00,424.00,425.00]},{ x:'05/11/2023',y:[416.50,416.50,382.50,384.00]},{ x:'05/12/2023',y:[371.00,382.00,361.00,366.50]},{ x:'05/15/2023',y:[363.50,378.00,362.00,372.50]},{ x:'05/16/2023',y:[373.00,377.50,370.00,370.00]},{ x:'05/17/2023',y:[368.50,372.00,367.00,369.50]},{ x:'05/18/2023',y:[372.50,375.50,369.50,374.00]},{ x:'05/19/2023',y:[371.50,374.00,365.00,370.00]},{ x:'05/22/2023',y:[371.00,374.50,366.00,366.50]},{ x:'05/23/2023',y:[368.00,368.00,363.50,364.00]},{ x:'05/24/2023',y:[364.00,364.50,356.00,357.00]},{ x:'05/25/2023',y:[357.00,366.50,346.00,365.50]},{ x:'05/26/2023',y:[361.50,365.50,358.00,362.00]},{ x:'05/29/2023',y:[362.50,365.50,357.00,357.00]},{ x:'05/30/2023',y:[357.50,360.50,351.50,352.00]},{ x:'05/31/2023',y:[350.00,355.00,348.00,353.00]},{ x:'06/01/2023',y:[355.00,359.00,351.50,352.00]},{ x:'06/02/2023',y:[352.00,364.00,352.00,360.00]},{ x:'06/05/2023',y:[361.00,368.00,358.50,363.00]},{ x:'06/06/2023',y:[363.00,363.00,356.00,360.00]},{ x:'06/07/2023',y:[357.00,360.50,357.00,357.00]},{ x:'06/08/2023',y:[357.00,357.50,352.00,353.00]},{ x:'06/09/2023',y:[355.00,362.00,355.00,360.50]},{ x:'06/12/2023',y:[358.50,363.50,357.00,359.50]},{ x:'06/13/2023',y:[358.50,360.50,350.00,354.00]},{ x:'06/14/2023',y:[357.50,357.50,348.00,348.50]},{ x:'06/15/2023',y:[348.00,352.00,340.00,345.00]},{ x:'06/16/2023',y:[350.00,357.00,348.00,357.00]},{ x:'06/19/2023',y:[357.50,363.00,354.00,361.00]},{ x:'06/20/2023',y:[364.00,364.00,354.50,354.50]},{ x:'06/21/2023',y:[357.00,359.50,350.00,359.50]},{ x:'06/26/2023',y:[359.50,365.50,357.00,361.50]},{ x:'06/27/2023',y:[364.00,384.00,362.00,377.00]},{ x:'06/28/2023',y:[375.50,378.00,366.50,373.00]},{ x:'06/29/2023',y:[379.50,391.50,375.00,375.00]},{ x:'06/30/2023',y:[384.50,384.50,376.00,378.00]},{ x:'07/03/2023',y:[379.00,383.00,376.00,378.50]},{ x:'07/04/2023',y:[378.50,394.00,377.50,392.50]},{ x:'07/05/2023',y:[389.00,393.00,387.00,390.00]},{ x:'07/06/2023',y:[390.00,400.00,388.50,396.00]},{ x:'07/07/2023',y:[394.00,396.00,390.00,393.50]},{ x:'07/10/2023',y:[393.50,399.50,393.50,398.50]},{ x:'07/11/2023',y:[402.00,407.00,398.50,404.50]},{ x:'07/12/2023',y:[407.00,412.00,405.50,410.00]},{ x:'07/13/2023',y:[412.00,413.00,394.50,396.50]},{ x:'07/14/2023',y:[402.00,409.50,399.00,409.00]},{ x:'07/17/2023',y:[409.00,409.00,397.50,398.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6469 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());