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/10/2022',y:[494.00,497.50,480.50,482.00]},{ x:'11/11/2022',y:[507.00,522.00,493.00,508.00]},{ x:'11/14/2022',y:[511.00,517.00,500.00,501.00]},{ x:'11/15/2022',y:[501.00,504.00,483.00,484.50]},{ x:'11/16/2022',y:[485.00,509.00,480.00,509.00]},{ x:'11/17/2022',y:[513.00,521.00,505.00,510.00]},{ x:'11/18/2022',y:[515.00,529.00,511.00,528.00]},{ x:'11/21/2022',y:[530.00,535.00,520.00,520.00]},{ x:'11/22/2022',y:[522.00,533.00,517.00,532.00]},{ x:'11/23/2022',y:[540.00,540.00,528.00,530.00]},{ x:'11/24/2022',y:[533.00,540.00,528.00,531.00]},{ x:'11/25/2022',y:[533.00,538.00,503.00,506.00]},{ x:'11/28/2022',y:[500.00,512.00,496.50,501.00]},{ x:'11/29/2022',y:[501.00,502.00,488.50,493.00]},{ x:'11/30/2022',y:[499.00,530.00,492.50,530.00]},{ x:'12/01/2022',y:[530.00,535.00,521.00,530.00]},{ x:'12/02/2022',y:[528.00,533.00,525.00,532.00]},{ x:'12/05/2022',y:[530.00,532.00,516.00,525.00]},{ x:'12/06/2022',y:[534.00,544.00,523.00,530.00]},{ x:'12/07/2022',y:[517.00,544.00,517.00,537.00]},{ x:'12/08/2022',y:[542.00,552.00,530.00,532.00]},{ x:'12/09/2022',y:[537.00,538.00,528.00,537.00]},{ x:'12/12/2022',y:[536.00,536.00,528.00,530.00]},{ x:'12/13/2022',y:[534.00,540.00,527.00,527.00]},{ x:'12/14/2022',y:[530.00,531.00,524.00,527.00]},{ x:'12/15/2022',y:[530.00,531.00,522.00,522.00]},{ x:'12/16/2022',y:[522.00,528.00,518.00,525.00]},{ x:'12/19/2022',y:[523.00,530.00,522.00,523.00]},{ x:'12/20/2022',y:[525.00,525.00,498.50,501.00]},{ x:'12/21/2022',y:[502.00,507.00,496.50,497.50]},{ x:'12/22/2022',y:[500.00,503.00,481.50,497.50]},{ x:'12/23/2022',y:[496.00,498.00,488.00,488.50]},{ x:'12/26/2022',y:[489.00,499.00,482.50,482.50]},{ x:'12/27/2022',y:[484.00,487.00,480.50,481.00]},{ x:'12/28/2022',y:[482.00,482.50,475.00,475.00]},{ x:'12/29/2022',y:[476.00,481.00,463.00,479.00]},{ x:'12/30/2022',y:[485.50,487.50,476.50,477.00]},{ x:'01/03/2023',y:[485.00,489.50,477.00,478.50]},{ x:'01/04/2023',y:[480.50,486.50,476.50,484.00]},{ x:'01/05/2023',y:[492.00,498.50,488.50,493.00]},{ x:'01/06/2023',y:[476.00,484.50,476.00,478.00]},{ x:'01/09/2023',y:[479.50,479.50,470.00,472.50]},{ x:'01/10/2023',y:[475.00,475.00,457.00,457.50]},{ x:'01/11/2023',y:[457.50,467.50,455.00,459.00]},{ x:'01/12/2023',y:[460.50,466.00,456.00,462.50]},{ x:'01/13/2023',y:[468.50,480.00,466.50,473.00]},{ x:'01/16/2023',y:[479.00,487.00,473.00,475.00]},{ x:'01/17/2023',y:[475.00,480.50,473.00,476.50]},{ x:'01/30/2023',y:[490.50,502.00,490.50,495.00]},{ x:'01/31/2023',y:[496.00,499.50,489.00,489.00]},{ x:'02/01/2023',y:[490.00,494.50,488.50,492.00]},{ x:'02/02/2023',y:[493.00,498.00,492.00,494.00]},{ x:'02/03/2023',y:[497.00,520.00,495.50,516.00]},{ x:'02/06/2023',y:[501.00,504.00,494.50,496.00]},{ x:'02/07/2023',y:[498.00,504.00,496.50,502.00]},{ x:'02/08/2023',y:[505.00,514.00,503.00,511.00]},{ x:'02/09/2023',y:[515.00,530.00,507.00,507.00]},{ x:'02/10/2023',y:[507.00,515.00,502.00,502.00]},{ x:'02/13/2023',y:[503.00,509.00,496.50,496.50]},{ x:'02/14/2023',y:[507.00,512.00,499.50,501.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6446 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());