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:'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]},{ x:'07/18/2023',y:[397.00,405.00,395.50,402.00]},{ x:'07/19/2023',y:[400.50,411.00,400.50,406.50]},{ x:'07/20/2023',y:[407.00,409.50,404.50,409.00]},{ x:'07/21/2023',y:[406.00,410.50,406.00,408.50]},{ x:'07/24/2023',y:[409.50,418.00,407.50,417.50]},{ x:'07/25/2023',y:[420.00,431.50,420.00,422.00]},{ x:'07/26/2023',y:[420.00,426.00,411.00,416.00]},{ x:'07/27/2023',y:[414.50,423.00,414.50,418.50]},{ x:'07/28/2023',y:[422.00,423.00,416.50,421.50]},{ x:'07/31/2023',y:[425.00,426.50,415.00,418.50]},{ x:'08/01/2023',y:[421.50,422.50,418.50,419.00]},{ x:'08/02/2023',y:[419.00,421.50,409.00,411.00]},{ x:'08/04/2023',y:[410.00,410.00,393.50,395.50]},{ x:'08/07/2023',y:[395.50,410.00,394.00,407.00]},{ x:'08/08/2023',y:[409.00,418.00,408.50,414.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());