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:'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]},{ x:'05/21/2024',y:[733.00,743.00,718.00,730.00]},{ x:'05/22/2024',y:[730.00,732.00,688.00,690.00]},{ x:'05/23/2024',y:[689.00,693.00,671.00,683.00]},{ x:'05/24/2024',y:[682.00,710.00,673.00,704.00]},{ x:'06/11/2024',y:[750.00,794.00,742.00,792.00]},{ x:'06/12/2024',y:[799.00,813.00,768.00,788.00]},{ x:'06/13/2024',y:[798.00,865.00,783.00,837.00]},{ x:'06/14/2024',y:[851.00,920.00,850.00,920.00]},{ x:'06/17/2024',y:[935.00,964.00,904.00,905.00]},{ x:'06/18/2024',y:[912.00,951.00,889.00,945.00]},{ x:'06/19/2024',y:[939.00,952.00,920.00,930.00]},{ x:'06/20/2024',y:[931.00,955.00,931.00,945.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());