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:'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]},{ x:'02/15/2023',y:[503.00,505.00,494.00,500.00]},{ x:'02/16/2023',y:[503.00,507.00,501.00,503.00]},{ x:'02/17/2023',y:[506.00,509.00,496.50,497.50]},{ x:'02/20/2023',y:[501.00,501.00,490.50,490.50]},{ x:'02/21/2023',y:[497.50,497.50,490.50,491.00]},{ x:'02/22/2023',y:[489.50,498.50,485.50,496.00]},{ x:'02/23/2023',y:[496.00,499.00,492.50,493.50]},{ x:'02/24/2023',y:[496.50,504.00,491.00,504.00]},{ x:'03/01/2023',y:[502.00,504.00,499.00,500.00]},{ x:'03/02/2023',y:[502.00,506.00,499.50,504.00]},{ x:'03/03/2023',y:[512.00,519.00,499.00,499.00]},{ x:'03/06/2023',y:[500.00,504.00,493.50,493.50]},{ x:'03/07/2023',y:[496.00,497.50,488.00,488.00]},{ x:'03/08/2023',y:[488.00,490.50,482.50,483.00]},{ x:'03/09/2023',y:[483.00,484.00,480.00,480.00]},{ x:'03/10/2023',y:[480.00,485.00,469.50,470.00]},{ x:'03/13/2023',y:[467.00,467.00,451.50,452.00]},{ x:'03/14/2023',y:[449.00,458.50,435.00,435.50]} ] }], 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());