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/29/2024',y:[297.50,308.50,297.00,306.00]},{ x:'04/30/2024',y:[301.00,304.50,296.00,298.00]},{ x:'05/02/2024',y:[297.50,297.50,288.00,296.00]},{ x:'05/03/2024',y:[302.00,303.50,294.00,295.50]},{ x:'05/06/2024',y:[297.00,302.00,287.50,288.00]},{ x:'05/07/2024',y:[300.00,306.00,298.00,306.00]},{ x:'05/08/2024',y:[310.00,311.50,301.00,302.00]},{ x:'05/09/2024',y:[304.00,310.50,303.00,304.50]},{ x:'05/10/2024',y:[307.00,307.50,294.00,294.00]},{ x:'05/13/2024',y:[301.00,301.00,289.50,292.50]},{ x:'05/14/2024',y:[291.50,295.50,291.50,295.00]},{ x:'05/15/2024',y:[294.50,295.50,290.00,291.00]},{ x:'05/16/2024',y:[294.50,294.50,291.00,293.00]},{ x:'05/17/2024',y:[293.00,296.50,290.50,293.50]},{ x:'05/20/2024',y:[293.00,295.50,290.50,291.00]},{ x:'05/21/2024',y:[292.50,300.00,292.00,300.00]},{ x:'05/22/2024',y:[302.00,304.00,298.00,303.50]},{ x:'05/23/2024',y:[305.50,305.50,294.00,296.50]},{ x:'05/24/2024',y:[293.50,299.00,290.50,298.50]},{ x:'06/11/2024',y:[349.50,350.00,338.00,349.00]},{ x:'06/12/2024',y:[354.00,372.50,352.00,366.00]},{ x:'06/13/2024',y:[369.00,377.00,362.50,366.00]},{ x:'06/14/2024',y:[370.00,390.00,363.50,376.50]},{ x:'06/17/2024',y:[378.00,386.00,373.50,376.00]},{ x:'06/18/2024',y:[382.50,382.50,365.50,382.50]},{ x:'06/19/2024',y:[382.00,398.00,368.00,368.50]},{ x:'06/20/2024',y:[370.00,374.00,367.50,369.00]},{ x:'06/21/2024',y:[368.00,372.50,360.00,370.00]},{ x:'06/24/2024',y:[375.00,405.00,375.00,398.00]},{ x:'06/25/2024',y:[397.00,414.00,392.00,396.00]},{ x:'06/26/2024',y:[403.00,423.50,395.00,417.50]},{ x:'06/27/2024',y:[415.00,430.00,415.00,420.00]},{ x:'06/28/2024',y:[425.00,428.50,410.00,415.50]},{ x:'07/01/2024',y:[425.00,448.50,415.50,431.00]},{ x:'07/02/2024',y:[435.00,451.00,428.00,445.00]},{ x:'07/03/2024',y:[455.00,457.50,425.00,427.00]},{ x:'07/04/2024',y:[431.00,437.00,416.50,418.50]},{ x:'07/05/2024',y:[419.50,439.00,408.00,431.00]},{ x:'07/12/2024',y:[411.00,415.50,405.00,409.00]},{ x:'07/15/2024',y:[411.50,420.00,405.50,414.50]},{ x:'07/16/2024',y:[418.50,420.00,412.00,415.00]},{ x:'07/17/2024',y:[415.00,429.50,415.00,418.00]},{ x:'07/18/2024',y:[408.00,411.00,376.50,385.00]},{ x:'07/19/2024',y:[385.00,395.00,384.00,384.00]},{ x:'07/22/2024',y:[385.00,387.00,365.00,370.50]},{ x:'07/23/2024',y:[379.50,381.50,373.00,375.00]},{ x:'07/26/2024',y:[360.00,373.50,352.00,366.00]},{ x:'07/29/2024',y:[377.00,377.00,354.00,355.50]},{ x:'07/30/2024',y:[351.50,362.00,350.00,360.00]},{ x:'07/31/2024',y:[355.50,361.50,353.00,353.00]},{ x:'08/01/2024',y:[364.00,375.50,358.00,373.00]},{ x:'08/02/2024',y:[365.00,367.00,346.50,346.50]},{ x:'08/05/2024',y:[314.50,320.50,312.00,312.00]},{ x:'08/06/2024',y:[327.00,328.00,283.00,321.00]},{ x:'08/07/2024',y:[326.00,341.00,325.00,330.00]},{ x:'08/08/2024',y:[322.00,338.50,319.00,332.50]},{ x:'08/09/2024',y:[345.50,350.00,338.00,342.00]},{ x:'08/12/2024',y:[343.00,361.50,343.00,360.00]},{ x:'08/13/2024',y:[366.00,373.00,358.50,366.00]},{ x:'08/14/2024',y:[373.00,381.00,367.50,370.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6683 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());