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:'01/22/2024',y:[417.00,428.50,409.50,424.00]},{ x:'01/23/2024',y:[424.00,425.50,416.00,417.50]},{ x:'01/24/2024',y:[424.00,452.00,423.00,441.50]},{ x:'01/25/2024',y:[446.00,464.50,438.00,458.50]},{ x:'01/26/2024',y:[459.50,459.50,445.50,449.00]},{ x:'01/29/2024',y:[462.00,463.50,442.00,447.50]},{ x:'01/30/2024',y:[445.50,459.50,443.00,455.00]},{ x:'01/31/2024',y:[451.00,451.00,432.00,445.50]},{ x:'02/01/2024',y:[445.50,468.50,443.50,466.50]},{ x:'02/02/2024',y:[470.00,475.00,460.50,470.00]},{ x:'02/05/2024',y:[470.00,470.00,457.00,461.50]},{ x:'02/15/2024',y:[463.00,474.00,457.50,463.00]},{ x:'02/16/2024',y:[463.00,463.00,452.00,455.50]},{ x:'02/19/2024',y:[455.00,480.00,444.50,475.00]},{ x:'02/20/2024',y:[481.50,483.50,466.50,475.00]},{ x:'02/21/2024',y:[474.50,482.50,450.50,450.50]},{ x:'02/22/2024',y:[455.50,460.00,447.00,454.00]},{ x:'02/23/2024',y:[459.00,499.00,455.00,499.00]},{ x:'02/26/2024',y:[495.00,497.00,472.50,477.50]},{ x:'02/27/2024',y:[482.50,486.50,462.50,475.00]},{ x:'02/29/2024',y:[482.50,486.00,469.50,472.00]},{ x:'03/01/2024',y:[472.00,475.00,465.00,469.50]},{ x:'03/04/2024',y:[473.50,483.50,469.50,471.00]},{ x:'03/05/2024',y:[474.50,474.50,460.50,463.50]},{ x:'03/06/2024',y:[463.00,463.00,453.00,454.00]},{ x:'03/07/2024',y:[457.00,463.00,442.00,449.00]},{ x:'03/08/2024',y:[456.00,460.50,429.00,433.00]},{ x:'03/11/2024',y:[435.00,451.50,435.00,437.00]},{ x:'03/12/2024',y:[438.00,442.00,430.00,431.50]},{ x:'03/13/2024',y:[434.00,439.00,430.50,433.00]},{ x:'03/14/2024',y:[433.50,464.00,421.00,450.00]},{ x:'03/15/2024',y:[460.00,494.50,453.50,473.00]},{ x:'03/18/2024',y:[480.00,483.00,463.00,464.00]},{ x:'03/19/2024',y:[466.50,494.50,464.00,476.50]},{ x:'03/20/2024',y:[474.50,479.00,458.00,460.50]},{ x:'03/21/2024',y:[470.00,479.00,460.00,460.00]},{ x:'03/22/2024',y:[463.00,467.50,457.00,457.00]},{ x:'03/25/2024',y:[463.00,464.50,457.00,458.50]},{ x:'03/26/2024',y:[460.00,460.00,433.00,433.00]},{ x:'03/27/2024',y:[431.50,437.50,422.00,427.50]},{ x:'03/28/2024',y:[426.50,434.00,426.50,427.00]},{ x:'03/29/2024',y:[429.00,450.00,429.00,444.50]},{ x:'04/01/2024',y:[447.00,449.00,437.50,445.50]},{ x:'04/02/2024',y:[445.00,446.50,427.50,430.00]},{ x:'04/03/2024',y:[430.00,445.50,427.50,429.00]},{ x:'04/08/2024',y:[431.50,440.00,427.50,434.00]},{ x:'04/09/2024',y:[434.00,434.00,421.00,422.00]},{ x:'04/10/2024',y:[425.00,430.00,424.50,429.00]},{ x:'04/11/2024',y:[430.00,430.00,416.50,426.00]},{ x:'04/12/2024',y:[426.50,432.00,425.00,431.00]},{ x:'04/15/2024',y:[426.50,430.00,412.00,423.50]},{ x:'04/16/2024',y:[416.00,416.00,395.00,397.00]},{ x:'04/17/2024',y:[402.50,429.00,400.00,427.50]},{ x:'04/18/2024',y:[421.00,423.00,404.00,405.50]},{ x:'04/19/2024',y:[399.50,405.50,382.00,391.00]},{ x:'04/22/2024',y:[391.00,396.00,371.00,376.00]},{ x:'04/23/2024',y:[380.00,384.00,363.00,371.00]},{ x:'04/24/2024',y:[377.50,390.50,377.50,389.50]},{ x:'04/25/2024',y:[383.00,388.00,376.50,381.00]},{ x:'04/26/2024',y:[385.00,390.50,381.00,382.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6679 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());