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/24/2024',y:[376.00,381.50,375.00,378.00]},{ x:'04/25/2024',y:[378.00,379.00,375.50,377.00]},{ x:'04/26/2024',y:[382.00,382.50,379.50,380.00]},{ x:'04/29/2024',y:[387.50,387.50,380.50,385.00]},{ x:'04/30/2024',y:[382.50,384.00,378.00,382.00]},{ x:'05/02/2024',y:[382.00,383.00,377.00,381.50]},{ x:'05/03/2024',y:[385.50,385.50,377.50,381.00]},{ x:'05/06/2024',y:[383.00,386.00,381.00,385.00]},{ x:'05/07/2024',y:[386.50,393.50,386.50,389.50]},{ x:'05/08/2024',y:[389.00,395.00,388.00,395.00]},{ x:'05/09/2024',y:[395.00,395.00,385.50,386.00]},{ x:'05/10/2024',y:[390.00,390.00,376.00,377.00]},{ x:'05/13/2024',y:[381.00,381.00,371.00,371.50]},{ x:'05/14/2024',y:[375.50,375.50,366.50,368.00]},{ x:'05/15/2024',y:[369.00,374.00,368.50,370.50]},{ x:'05/16/2024',y:[374.00,382.00,370.50,381.00]},{ x:'05/17/2024',y:[379.00,380.00,375.00,378.50]},{ x:'05/20/2024',y:[376.50,380.50,375.50,379.50]},{ x:'05/21/2024',y:[382.00,382.00,376.50,377.50]},{ x:'05/22/2024',y:[380.00,382.00,377.00,377.00]},{ x:'05/23/2024',y:[377.00,378.00,372.00,372.00]},{ x:'05/24/2024',y:[368.50,372.50,368.00,369.00]},{ x:'06/11/2024',y:[405.00,419.50,405.00,417.50]},{ x:'06/12/2024',y:[416.00,420.00,412.00,420.00]},{ x:'06/13/2024',y:[419.50,438.50,419.00,427.50]},{ x:'06/14/2024',y:[432.50,432.50,423.00,423.00]},{ x:'06/17/2024',y:[419.50,427.00,419.50,422.50]},{ x:'06/18/2024',y:[424.50,431.00,421.00,421.00]},{ x:'06/19/2024',y:[424.00,430.00,422.50,429.50]},{ x:'06/20/2024',y:[435.00,439.00,429.00,435.00]},{ x:'06/21/2024',y:[430.00,436.00,425.00,425.00]},{ x:'06/24/2024',y:[426.00,435.50,422.50,432.50]},{ x:'06/25/2024',y:[438.00,438.00,427.00,431.50]},{ x:'06/26/2024',y:[432.00,452.50,432.00,448.00]},{ x:'06/27/2024',y:[446.50,446.50,435.00,440.50]},{ x:'06/28/2024',y:[444.50,446.00,439.50,441.00]},{ x:'07/01/2024',y:[441.50,455.00,441.50,449.50]},{ x:'07/02/2024',y:[448.50,448.50,438.00,443.00]},{ x:'07/03/2024',y:[442.50,448.00,438.00,438.00]},{ x:'07/04/2024',y:[439.50,444.50,429.50,434.00]},{ x:'07/05/2024',y:[445.00,458.50,440.00,447.00]},{ x:'07/12/2024',y:[444.00,450.00,441.00,448.00]},{ x:'07/15/2024',y:[449.00,456.00,444.00,452.00]},{ x:'07/16/2024',y:[450.00,452.00,439.50,442.00]},{ x:'07/17/2024',y:[442.00,443.00,417.50,422.50]},{ x:'07/18/2024',y:[414.50,427.00,409.00,422.00]},{ x:'07/19/2024',y:[422.00,426.00,414.50,414.50]},{ x:'07/22/2024',y:[320.00,334.00,313.00,327.50]},{ x:'07/23/2024',y:[333.50,337.50,323.50,327.00]},{ x:'07/26/2024',y:[323.50,324.00,317.00,319.00]},{ x:'07/29/2024',y:[323.50,324.00,311.50,314.00]},{ x:'07/30/2024',y:[313.50,316.00,310.00,315.00]},{ x:'07/31/2024',y:[310.50,315.00,310.50,312.00]},{ x:'08/01/2024',y:[316.00,319.00,312.50,313.50]},{ x:'08/02/2024',y:[309.50,311.50,303.00,303.00]},{ x:'08/05/2024',y:[300.00,300.00,278.50,289.00]},{ x:'08/06/2024',y:[294.00,294.50,275.00,294.50]},{ x:'08/07/2024',y:[292.50,300.50,292.00,299.50]},{ x:'08/08/2024',y:[292.50,298.50,292.50,295.50]},{ x:'08/09/2024',y:[298.50,302.50,298.50,299.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6691 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());