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/01/2024',y:[386.00,390.50,386.00,388.00]},{ x:'04/02/2024',y:[390.00,393.50,387.00,391.00]},{ x:'04/03/2024',y:[389.50,392.00,388.00,390.00]},{ x:'04/08/2024',y:[390.00,394.00,388.00,388.00]},{ x:'04/09/2024',y:[389.00,390.00,384.50,385.00]},{ x:'04/10/2024',y:[391.00,396.00,385.50,390.00]},{ x:'04/11/2024',y:[387.00,387.50,382.00,383.00]},{ x:'04/12/2024',y:[394.00,419.50,390.50,409.50]},{ x:'04/15/2024',y:[415.00,415.00,401.00,406.00]},{ x:'04/16/2024',y:[406.00,406.00,396.00,398.50]},{ x:'04/17/2024',y:[403.00,419.00,403.00,404.50]},{ x:'04/18/2024',y:[400.00,403.50,390.50,392.50]},{ x:'04/19/2024',y:[393.00,393.00,367.50,375.50]},{ x:'04/22/2024',y:[375.50,380.50,360.00,360.00]},{ x:'04/23/2024',y:[362.00,370.50,362.00,370.50]},{ 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]} ] }], 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());