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/23/2024',y:[372.00,393.00,372.00,385.00]},{ x:'01/24/2024',y:[389.00,396.50,383.00,392.00]},{ x:'01/25/2024',y:[392.00,393.00,380.00,380.50]},{ x:'01/26/2024',y:[382.00,385.50,373.00,380.50]},{ x:'01/29/2024',y:[381.00,396.00,380.00,395.50]},{ x:'01/30/2024',y:[396.00,420.00,391.50,420.00]},{ x:'01/31/2024',y:[421.00,459.00,417.00,444.00]},{ x:'02/01/2024',y:[445.00,488.00,441.50,488.00]},{ x:'02/02/2024',y:[520.00,520.00,484.00,488.50]},{ x:'02/05/2024',y:[493.50,507.00,487.00,492.00]},{ x:'02/15/2024',y:[498.00,519.00,496.00,496.00]},{ x:'02/16/2024',y:[503.00,517.00,484.00,503.00]},{ x:'02/19/2024',y:[508.00,530.00,500.00,502.00]},{ x:'02/20/2024',y:[507.00,513.00,487.00,502.00]},{ 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]} ] }], 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());