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:[384.50,390.50,382.00,382.50]},{ x:'11/24/2022',y:[387.00,392.00,383.50,389.50]},{ x:'11/25/2022',y:[390.00,392.50,381.50,381.50]},{ x:'11/28/2022',y:[383.00,390.00,378.00,387.50]},{ x:'11/29/2022',y:[386.50,388.50,382.50,386.00]},{ x:'11/30/2022',y:[386.00,389.50,384.50,388.50]},{ x:'12/01/2022',y:[392.00,393.50,386.50,387.50]},{ x:'12/02/2022',y:[387.50,393.50,387.50,392.00]},{ x:'12/05/2022',y:[395.50,402.50,392.00,392.00]},{ x:'12/06/2022',y:[392.00,403.50,390.50,399.50]},{ x:'12/07/2022',y:[400.00,407.50,390.50,390.50]},{ x:'12/08/2022',y:[391.50,394.50,388.00,394.00]},{ x:'12/09/2022',y:[390.50,393.00,387.50,390.00]},{ x:'12/12/2022',y:[388.00,392.50,387.50,391.00]},{ x:'12/13/2022',y:[393.00,393.50,388.50,388.50]},{ x:'12/14/2022',y:[391.00,394.00,388.50,393.00]},{ x:'12/15/2022',y:[394.50,403.00,393.50,395.00]},{ x:'12/16/2022',y:[392.50,401.00,391.00,398.00]},{ x:'12/19/2022',y:[402.00,418.00,400.00,418.00]},{ x:'12/20/2022',y:[421.50,430.00,400.50,404.50]},{ x:'12/21/2022',y:[408.50,424.50,406.00,424.00]},{ x:'12/22/2022',y:[430.00,431.00,420.50,426.50]},{ x:'12/23/2022',y:[422.00,439.00,420.00,425.50]},{ x:'12/26/2022',y:[431.00,434.50,420.00,421.00]},{ x:'12/27/2022',y:[427.00,431.50,423.50,430.00]},{ x:'12/28/2022',y:[430.00,435.00,427.00,428.00]},{ x:'12/29/2022',y:[427.50,438.00,422.50,424.50]},{ x:'12/30/2022',y:[429.00,436.00,425.50,433.50]},{ x:'01/03/2023',y:[434.50,439.00,428.50,433.50]},{ x:'01/04/2023',y:[435.00,445.00,434.00,444.00]},{ x:'01/05/2023',y:[446.50,449.00,441.00,445.00]},{ x:'01/06/2023',y:[450.00,464.00,446.00,453.00]},{ x:'01/09/2023',y:[457.50,476.00,455.50,476.00]},{ x:'01/10/2023',y:[485.00,488.00,477.50,483.50]},{ x:'01/11/2023',y:[492.00,498.00,478.50,481.50]},{ x:'01/12/2023',y:[484.50,484.50,469.00,474.00]},{ x:'01/13/2023',y:[478.00,478.00,466.00,466.50]},{ x:'01/16/2023',y:[468.00,475.00,468.00,472.00]},{ x:'01/17/2023',y:[475.00,482.50,473.50,481.00]},{ x:'01/30/2023',y:[486.00,495.50,482.00,495.00]},{ x:'01/31/2023',y:[495.50,497.00,487.00,494.50]},{ x:'02/01/2023',y:[497.50,518.00,495.50,517.00]},{ x:'02/02/2023',y:[517.00,521.00,510.00,518.00]},{ x:'02/03/2023',y:[521.00,525.00,508.00,524.00]},{ x:'02/06/2023',y:[525.00,529.00,500.00,500.00]},{ x:'02/07/2023',y:[502.00,519.00,502.00,516.00]},{ x:'02/08/2023',y:[518.00,526.00,513.00,514.00]},{ x:'02/09/2023',y:[514.00,518.00,506.00,507.00]},{ x:'02/10/2023',y:[508.00,515.00,506.00,508.00]},{ x:'02/13/2023',y:[504.00,508.00,500.00,502.00]},{ x:'02/14/2023',y:[508.00,513.00,501.00,503.00]},{ x:'02/15/2023',y:[502.00,509.00,502.00,508.00]},{ x:'02/16/2023',y:[510.00,511.00,507.00,509.00]},{ x:'02/17/2023',y:[505.00,518.00,505.00,517.00]},{ x:'02/20/2023',y:[522.00,522.00,508.00,508.00]},{ x:'02/21/2023',y:[508.00,511.00,502.00,505.00]},{ x:'02/22/2023',y:[503.00,505.00,489.00,497.50]},{ x:'02/23/2023',y:[498.50,512.00,497.50,508.00]},{ x:'02/24/2023',y:[511.00,513.00,501.00,505.00]},{ x:'03/01/2023',y:[503.00,519.00,498.00,519.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3293 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());