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:'11/23/2022',y:[447.00,475.00,439.00,467.50]},{ x:'11/24/2022',y:[472.00,472.00,456.00,462.00]},{ x:'11/25/2022',y:[458.00,459.00,416.00,416.00]},{ x:'11/28/2022',y:[399.00,432.00,399.00,428.00]},{ x:'11/29/2022',y:[428.00,444.00,421.00,426.50]},{ x:'11/30/2022',y:[428.00,449.00,425.50,449.00]},{ x:'12/01/2022',y:[450.00,453.00,440.50,446.00]},{ x:'12/02/2022',y:[449.00,470.00,449.00,463.00]},{ x:'12/05/2022',y:[450.00,466.00,440.00,464.00]},{ x:'12/06/2022',y:[463.00,469.00,418.00,418.00]},{ x:'12/07/2022',y:[409.00,421.00,390.00,400.00]},{ x:'12/08/2022',y:[410.00,410.00,382.00,387.50]},{ x:'12/09/2022',y:[390.00,399.50,383.50,394.50]},{ x:'12/12/2022',y:[392.50,398.00,379.50,397.00]},{ x:'12/13/2022',y:[397.50,416.50,397.50,402.00]},{ x:'12/14/2022',y:[405.00,410.00,385.00,402.00]},{ x:'12/15/2022',y:[404.50,407.00,392.00,394.00]},{ x:'12/16/2022',y:[387.50,397.50,381.50,383.50]},{ x:'12/19/2022',y:[383.50,412.00,383.50,397.50]},{ x:'12/20/2022',y:[408.00,412.00,385.00,388.00]},{ x:'12/21/2022',y:[397.50,411.00,392.50,405.00]},{ x:'12/22/2022',y:[412.00,428.50,397.50,416.00]},{ x:'12/23/2022',y:[413.50,419.50,404.00,406.50]},{ x:'12/26/2022',y:[411.50,424.00,410.50,419.00]},{ x:'12/27/2022',y:[424.50,425.00,408.00,412.50]},{ x:'12/28/2022',y:[410.00,421.50,409.00,411.50]},{ x:'12/29/2022',y:[411.50,420.00,399.50,420.00]},{ x:'12/30/2022',y:[423.00,437.00,414.50,414.50]},{ x:'01/03/2023',y:[418.00,435.00,417.50,434.50]},{ x:'01/04/2023',y:[437.00,442.00,425.50,426.00]},{ x:'01/05/2023',y:[429.50,436.00,412.50,414.50]},{ x:'01/06/2023',y:[416.00,421.00,406.00,406.50]},{ x:'01/09/2023',y:[410.00,415.00,405.50,412.00]},{ x:'01/10/2023',y:[410.00,417.50,406.50,407.00]},{ x:'01/11/2023',y:[409.00,414.00,394.50,394.50]},{ x:'01/12/2023',y:[397.00,397.50,381.00,384.50]},{ x:'01/13/2023',y:[386.50,389.00,381.00,383.50]},{ x:'01/16/2023',y:[385.50,394.00,381.50,394.00]},{ x:'01/17/2023',y:[394.00,409.00,391.00,402.00]},{ x:'01/30/2023',y:[410.00,412.00,397.00,398.00]},{ x:'01/31/2023',y:[403.00,412.50,398.50,412.50]},{ x:'02/01/2023',y:[413.50,413.50,402.50,404.50]},{ x:'02/02/2023',y:[407.00,410.50,403.50,407.50]},{ x:'02/03/2023',y:[411.00,416.00,408.00,411.50]},{ x:'02/06/2023',y:[415.50,447.50,413.50,425.50]},{ x:'02/07/2023',y:[432.00,468.00,432.00,468.00]},{ x:'02/08/2023',y:[476.50,514.00,471.50,514.00]},{ x:'02/09/2023',y:[530.00,539.00,520.00,528.00]},{ x:'02/10/2023',y:[542.00,574.00,531.00,541.00]},{ x:'02/13/2023',y:[548.00,550.00,517.00,530.00]},{ x:'02/14/2023',y:[477.00,477.00,477.00,477.00]},{ x:'02/15/2023',y:[449.00,473.50,449.00,469.00]},{ x:'02/16/2023',y:[463.50,472.00,455.50,470.00]},{ x:'02/17/2023',y:[470.00,501.00,470.00,499.50]},{ x:'02/20/2023',y:[504.00,504.00,492.50,492.50]},{ x:'02/21/2023',y:[499.50,502.00,485.00,500.00]},{ x:'02/22/2023',y:[500.00,502.00,493.00,493.00]},{ x:'02/23/2023',y:[500.00,520.00,495.00,510.00]},{ x:'02/24/2023',y:[512.00,512.00,498.00,503.00]},{ x:'03/01/2023',y:[505.00,514.00,501.00,514.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6472 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());