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:'02/24/2023',y:[580.00,615.00,580.00,598.00]},{ x:'03/01/2023',y:[610.00,638.00,605.00,607.00]},{ x:'03/02/2023',y:[614.00,630.00,594.00,602.00]},{ x:'03/03/2023',y:[615.00,626.00,604.00,612.00]},{ x:'03/06/2023',y:[625.00,654.00,610.00,639.00]},{ x:'03/07/2023',y:[623.00,625.00,592.00,603.00]},{ x:'03/08/2023',y:[601.00,615.00,601.00,608.00]},{ x:'03/09/2023',y:[615.00,627.00,609.00,622.00]},{ x:'03/10/2023',y:[611.00,621.00,602.00,606.00]},{ x:'03/13/2023',y:[600.00,604.00,584.00,589.00]},{ x:'03/14/2023',y:[583.00,589.00,575.00,575.00]},{ x:'03/15/2023',y:[590.00,597.00,580.00,582.00]},{ x:'03/16/2023',y:[577.00,588.00,568.00,572.00]},{ x:'03/17/2023',y:[586.00,622.00,586.00,616.00]},{ x:'03/20/2023',y:[631.00,653.00,625.00,651.00]},{ x:'03/21/2023',y:[664.00,688.00,652.00,684.00]},{ x:'03/22/2023',y:[698.00,715.00,680.00,689.00]},{ x:'03/23/2023',y:[696.00,710.00,690.00,710.00]},{ x:'03/24/2023',y:[731.00,780.00,731.00,746.00]},{ x:'03/27/2023',y:[752.00,761.00,741.00,751.00]},{ x:'03/28/2023',y:[755.00,756.00,716.00,743.00]},{ x:'03/29/2023',y:[750.00,750.00,721.00,734.00]},{ x:'03/30/2023',y:[745.00,751.00,728.00,729.00]},{ x:'03/31/2023',y:[736.00,736.00,717.00,719.00]},{ x:'04/06/2023',y:[716.00,727.00,697.00,723.00]},{ x:'04/07/2023',y:[683.00,719.00,663.00,713.00]},{ x:'04/10/2023',y:[720.00,761.00,720.00,735.00]},{ x:'04/11/2023',y:[735.00,768.00,735.00,768.00]},{ x:'04/12/2023',y:[776.00,796.00,748.00,754.00]},{ x:'04/13/2023',y:[762.00,764.00,702.00,710.00]},{ x:'04/14/2023',y:[717.00,725.00,709.00,714.00]},{ x:'04/17/2023',y:[744.00,752.00,720.00,723.00]},{ x:'04/18/2023',y:[730.00,744.00,723.00,724.00]},{ x:'04/19/2023',y:[730.00,739.00,726.00,728.00]},{ x:'04/20/2023',y:[731.00,734.00,711.00,714.00]},{ x:'04/21/2023',y:[723.00,727.00,701.00,705.00]},{ x:'04/24/2023',y:[691.00,708.00,690.00,701.00]},{ x:'04/25/2023',y:[708.00,709.00,664.00,673.00]},{ x:'04/26/2023',y:[670.00,681.00,638.00,681.00]},{ x:'04/27/2023',y:[679.00,723.00,673.00,712.00]},{ x:'04/28/2023',y:[725.00,737.00,704.00,713.00]},{ x:'05/02/2023',y:[720.00,733.00,714.00,723.00]},{ x:'05/03/2023',y:[720.00,720.00,709.00,715.00]},{ x:'05/04/2023',y:[710.00,720.00,707.00,710.00]},{ x:'05/05/2023',y:[719.00,721.00,659.00,659.00]},{ x:'05/08/2023',y:[665.00,670.00,647.00,656.00]},{ x:'05/09/2023',y:[647.00,660.00,634.00,637.00]},{ x:'05/10/2023',y:[638.00,638.00,621.00,631.00]},{ x:'05/11/2023',y:[636.00,654.00,628.00,643.00]},{ x:'05/12/2023',y:[638.00,700.00,638.00,688.00]},{ x:'05/15/2023',y:[688.00,695.00,661.00,661.00]},{ x:'05/16/2023',y:[671.00,674.00,658.00,662.00]},{ x:'05/17/2023',y:[668.00,697.00,667.00,692.00]},{ x:'05/18/2023',y:[703.00,720.00,692.00,698.00]},{ x:'05/19/2023',y:[706.00,723.00,703.00,720.00]},{ x:'05/22/2023',y:[728.00,729.00,687.00,687.00]},{ x:'05/23/2023',y:[692.00,707.00,683.00,691.00]},{ x:'05/24/2023',y:[688.00,693.00,675.00,693.00]},{ x:'05/25/2023',y:[717.00,762.00,710.00,762.00]},{ x:'05/26/2023',y:[803.00,838.00,801.00,838.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6515 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());