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:[527.00,539.00,524.00,526.00]},{ x:'01/23/2024',y:[530.00,531.00,515.00,520.00]},{ x:'01/24/2024',y:[521.00,523.00,498.00,498.00]},{ x:'01/25/2024',y:[502.00,507.00,491.00,494.00]},{ x:'01/26/2024',y:[495.00,499.50,490.50,490.50]},{ x:'01/29/2024',y:[491.50,520.00,486.00,519.00]},{ x:'01/30/2024',y:[525.00,530.00,514.00,523.00]},{ x:'01/31/2024',y:[521.00,533.00,519.00,523.00]},{ x:'02/01/2024',y:[523.00,527.00,512.00,517.00]},{ x:'02/02/2024',y:[521.00,532.00,518.00,518.00]},{ x:'02/05/2024',y:[521.00,523.00,494.00,497.00]},{ x:'02/15/2024',y:[483.00,496.00,475.00,483.50]},{ x:'02/16/2024',y:[486.50,490.50,479.50,480.00]},{ x:'02/19/2024',y:[485.50,485.50,466.00,470.00]},{ x:'02/20/2024',y:[470.00,487.50,468.50,470.50]},{ x:'02/21/2024',y:[472.50,476.00,464.00,464.00]},{ x:'02/22/2024',y:[471.50,473.50,446.00,450.00]},{ x:'02/23/2024',y:[454.00,457.00,439.50,439.50]},{ x:'02/26/2024',y:[440.50,443.50,436.00,436.50]},{ x:'02/27/2024',y:[441.00,452.00,435.50,438.00]},{ x:'02/29/2024',y:[442.50,458.00,435.00,455.00]},{ x:'03/01/2024',y:[460.00,483.00,460.00,477.50]},{ x:'03/04/2024',y:[499.00,503.00,483.50,491.50]},{ x:'03/05/2024',y:[493.00,496.00,479.00,490.00]},{ x:'03/06/2024',y:[481.00,482.00,450.00,450.00]},{ x:'03/07/2024',y:[453.00,458.00,435.00,435.00]},{ x:'03/08/2024',y:[440.00,443.00,425.00,431.00]},{ x:'03/11/2024',y:[431.50,449.00,430.00,443.00]},{ x:'03/12/2024',y:[446.50,448.00,431.00,431.50]},{ x:'03/13/2024',y:[436.00,439.00,401.50,405.00]},{ x:'03/14/2024',y:[405.50,417.50,397.50,404.50]},{ x:'03/15/2024',y:[404.50,410.00,401.00,406.00]},{ x:'03/18/2024',y:[414.00,417.00,402.50,407.00]},{ x:'03/19/2024',y:[408.00,412.00,400.50,402.50]},{ x:'03/20/2024',y:[404.50,408.00,393.50,395.00]},{ x:'03/21/2024',y:[403.00,406.50,398.00,405.50]},{ x:'03/22/2024',y:[409.50,415.00,405.00,405.00]},{ x:'03/25/2024',y:[407.50,415.00,405.00,405.00]},{ x:'03/26/2024',y:[409.50,414.00,394.00,394.00]},{ x:'03/27/2024',y:[396.50,402.00,391.50,392.00]},{ x:'03/28/2024',y:[395.00,395.50,386.50,388.00]},{ x:'03/29/2024',y:[390.50,404.50,390.50,401.50]},{ x:'04/01/2024',y:[401.00,413.00,397.50,408.00]},{ x:'04/02/2024',y:[412.00,415.50,404.00,408.00]},{ x:'04/03/2024',y:[405.50,416.00,403.00,412.00]},{ x:'04/08/2024',y:[416.00,416.00,400.50,402.00]},{ x:'04/09/2024',y:[402.50,408.00,394.00,395.00]},{ x:'04/10/2024',y:[397.00,401.00,393.50,398.50]},{ x:'04/11/2024',y:[397.50,402.00,389.00,395.00]},{ x:'04/12/2024',y:[397.50,398.00,388.00,388.00]},{ x:'04/15/2024',y:[386.00,386.00,373.50,376.50]},{ x:'04/16/2024',y:[371.50,390.00,365.00,384.00]},{ x:'04/17/2024',y:[383.50,388.00,378.50,383.00]},{ x:'04/18/2024',y:[379.00,387.50,376.00,383.00]},{ x:'04/19/2024',y:[379.00,386.00,345.50,360.50]},{ x:'04/22/2024',y:[359.50,363.50,345.00,345.00]},{ x:'04/23/2024',y:[352.00,356.50,347.00,354.00]},{ x:'04/24/2024',y:[360.00,365.50,356.50,365.50]},{ x:'04/25/2024',y:[360.50,361.50,354.00,354.00]},{ x:'04/26/2024',y:[359.00,378.50,359.00,371.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6531 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());