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/21/2024',y:[508.00,525.00,506.00,507.00]},{ x:'02/22/2024',y:[515.00,526.00,505.00,517.00]},{ x:'02/23/2024',y:[528.00,568.00,515.00,560.00]},{ x:'02/26/2024',y:[562.00,562.00,528.00,538.00]},{ x:'02/27/2024',y:[538.00,545.00,525.00,528.00]},{ x:'02/29/2024',y:[525.00,545.00,520.00,538.00]},{ x:'03/01/2024',y:[539.00,539.00,526.00,538.00]},{ x:'03/04/2024',y:[535.00,538.00,526.00,528.00]},{ x:'03/05/2024',y:[528.00,549.00,527.00,549.00]},{ x:'03/06/2024',y:[536.00,563.00,536.00,555.00]},{ x:'03/07/2024',y:[562.00,562.00,526.00,541.00]},{ x:'03/08/2024',y:[541.00,541.00,490.00,502.00]},{ x:'03/11/2024',y:[504.00,514.00,502.00,514.00]},{ x:'03/12/2024',y:[530.00,548.00,495.50,525.00]},{ x:'03/13/2024',y:[548.00,577.00,539.00,577.00]},{ x:'03/14/2024',y:[601.00,634.00,570.00,634.00]},{ x:'03/15/2024',y:[650.00,684.00,642.00,665.00]},{ x:'03/18/2024',y:[662.00,702.00,655.00,694.00]},{ x:'03/19/2024',y:[673.00,680.00,655.00,660.00]},{ x:'03/20/2024',y:[664.00,676.00,641.00,676.00]},{ x:'03/21/2024',y:[676.00,700.00,676.00,700.00]},{ x:'03/22/2024',y:[716.00,716.00,699.00,714.00]},{ x:'03/25/2024',y:[720.00,785.00,720.00,785.00]},{ x:'03/26/2024',y:[801.00,827.00,750.00,788.00]},{ x:'03/27/2024',y:[779.00,787.00,710.00,710.00]},{ x:'03/28/2024',y:[705.00,710.00,654.00,670.00]},{ x:'03/29/2024',y:[670.00,686.00,661.00,683.00]},{ x:'04/01/2024',y:[702.00,748.00,702.00,740.00]},{ x:'04/02/2024',y:[750.00,792.00,744.00,792.00]},{ x:'04/03/2024',y:[792.00,816.00,776.00,816.00]},{ x:'04/08/2024',y:[826.00,872.00,775.00,776.00]},{ x:'04/09/2024',y:[800.00,853.00,800.00,853.00]},{ x:'04/10/2024',y:[859.00,894.00,811.00,857.00]},{ x:'04/11/2024',y:[861.00,925.00,855.00,860.00]},{ x:'04/12/2024',y:[896.00,946.00,893.00,946.00]},{ x:'04/15/2024',y:[954.00,988.00,859.00,876.00]},{ x:'04/16/2024',y:[862.00,896.00,828.00,864.00]},{ x:'04/17/2024',y:[889.00,950.00,870.00,950.00]},{ x:'04/18/2024',y:[960.00,984.00,933.00,955.00]},{ x:'04/19/2024',y:[955.00,982.00,896.00,915.00]},{ x:'04/22/2024',y:[930.00,952.00,824.00,824.00]},{ x:'04/23/2024',y:[856.00,863.00,789.00,825.00]},{ x:'04/24/2024',y:[851.00,860.00,804.00,854.00]},{ x:'04/25/2024',y:[853.00,864.00,816.00,863.00]},{ x:'04/26/2024',y:[875.00,898.00,842.00,854.00]},{ x:'04/29/2024',y:[858.00,872.00,833.00,853.00]},{ x:'04/30/2024',y:[853.00,853.00,815.00,847.00]},{ x:'05/02/2024',y:[845.00,855.00,799.00,802.00]},{ x:'05/03/2024',y:[813.00,839.00,805.00,818.00]},{ x:'05/06/2024',y:[832.00,834.00,792.00,797.00]},{ x:'05/07/2024',y:[800.00,820.00,780.00,817.00]},{ x:'05/08/2024',y:[817.00,898.00,812.00,888.00]},{ x:'05/09/2024',y:[894.00,894.00,830.00,835.00]},{ x:'05/10/2024',y:[838.00,848.00,798.00,798.00]},{ x:'05/13/2024',y:[785.00,785.00,725.00,750.00]},{ x:'05/14/2024',y:[750.00,792.00,729.00,767.00]},{ x:'05/15/2024',y:[790.00,804.00,753.00,755.00]},{ x:'05/16/2024',y:[758.00,777.00,737.00,739.00]},{ x:'05/17/2024',y:[748.00,751.00,727.00,741.00]},{ x:'05/20/2024',y:[745.00,767.00,731.00,731.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1519 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());