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:[650.00,656.00,640.00,654.00]},{ x:'01/23/2024',y:[653.00,659.00,640.00,657.00]},{ x:'01/24/2024',y:[662.00,666.00,647.00,647.00]},{ x:'01/25/2024',y:[654.00,663.00,643.00,655.00]},{ x:'01/26/2024',y:[654.00,662.00,647.00,660.00]},{ x:'01/29/2024',y:[656.00,672.00,656.00,667.00]},{ x:'01/30/2024',y:[670.00,674.00,660.00,660.00]},{ x:'01/31/2024',y:[662.00,665.00,631.00,633.00]},{ x:'02/01/2024',y:[633.00,644.00,631.00,636.00]},{ x:'02/02/2024',y:[640.00,650.00,635.00,650.00]},{ x:'02/05/2024',y:[642.00,656.00,633.00,650.00]},{ x:'02/15/2024',y:[652.00,657.00,633.00,650.00]},{ x:'02/16/2024',y:[654.00,682.00,653.00,678.00]},{ x:'02/19/2024',y:[678.00,690.00,669.00,689.00]},{ x:'02/20/2024',y:[694.00,697.00,681.00,688.00]},{ x:'02/21/2024',y:[688.00,697.00,683.00,695.00]},{ x:'02/22/2024',y:[700.00,700.00,682.00,682.00]},{ x:'02/23/2024',y:[686.00,688.00,677.00,677.00]},{ x:'02/26/2024',y:[677.00,692.00,667.00,688.00]},{ x:'02/27/2024',y:[688.00,690.00,674.00,675.00]},{ x:'02/29/2024',y:[679.00,719.00,672.00,713.00]},{ x:'03/01/2024',y:[713.00,718.00,705.00,706.00]},{ x:'03/04/2024',y:[714.00,725.00,706.00,722.00]},{ x:'03/05/2024',y:[723.00,732.00,713.00,713.00]},{ x:'03/06/2024',y:[713.00,743.00,707.00,722.00]},{ x:'03/07/2024',y:[726.00,734.00,706.00,712.00]},{ x:'03/08/2024',y:[712.00,718.00,690.00,697.00]},{ x:'03/11/2024',y:[710.00,743.00,706.00,731.00]},{ x:'03/12/2024',y:[742.00,798.00,735.00,746.00]},{ x:'03/13/2024',y:[760.00,760.00,704.00,718.00]},{ x:'03/14/2024',y:[715.00,723.00,688.00,708.00]},{ x:'03/15/2024',y:[697.00,709.00,697.00,702.00]},{ x:'03/18/2024',y:[703.00,722.00,695.00,718.00]},{ x:'03/19/2024',y:[712.00,717.00,696.00,698.00]},{ x:'03/20/2024',y:[697.00,722.00,695.00,703.00]},{ x:'03/21/2024',y:[709.00,718.00,698.00,698.00]},{ x:'03/22/2024',y:[700.00,720.00,690.00,717.00]},{ x:'03/25/2024',y:[721.00,724.00,707.00,707.00]},{ x:'03/26/2024',y:[714.00,714.00,697.00,701.00]},{ x:'03/27/2024',y:[704.00,714.00,695.00,698.00]},{ x:'03/28/2024',y:[701.00,701.00,693.00,693.00]},{ x:'03/29/2024',y:[703.00,703.00,691.00,695.00]},{ x:'04/01/2024',y:[695.00,700.00,689.00,689.00]},{ x:'04/02/2024',y:[692.00,692.00,681.00,691.00]},{ x:'04/03/2024',y:[691.00,692.00,683.00,685.00]},{ x:'04/08/2024',y:[685.00,691.00,678.00,679.00]},{ x:'04/09/2024',y:[680.00,681.00,670.00,674.00]},{ x:'04/10/2024',y:[674.00,681.00,660.00,660.00]},{ x:'04/11/2024',y:[668.00,690.00,660.00,666.00]},{ x:'04/12/2024',y:[669.00,679.00,651.00,665.00]},{ x:'04/15/2024',y:[668.00,669.00,638.00,640.00]},{ x:'04/16/2024',y:[641.00,641.00,617.00,623.00]},{ x:'04/17/2024',y:[625.00,631.00,619.00,624.00]},{ x:'04/18/2024',y:[616.00,625.00,610.00,610.00]},{ x:'04/19/2024',y:[604.00,607.00,555.00,575.00]},{ x:'04/22/2024',y:[572.00,581.00,553.00,565.00]},{ x:'04/23/2024',y:[609.00,620.00,579.00,595.00]},{ x:'04/24/2024',y:[614.00,627.00,606.00,613.00]},{ x:'04/25/2024',y:[605.00,622.00,600.00,618.00]},{ x:'04/26/2024',y:[626.00,634.00,618.00,625.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6781 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());