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:'04/18/2023',y:[796.00,810.00,785.00,788.00]},{ x:'04/19/2023',y:[795.00,850.00,795.00,846.00]},{ x:'04/20/2023',y:[843.00,843.00,780.00,789.00]},{ x:'04/21/2023',y:[777.00,783.00,711.00,711.00]},{ x:'04/24/2023',y:[699.00,758.00,699.00,725.00]},{ x:'04/25/2023',y:[737.00,748.00,682.00,704.00]},{ x:'04/26/2023',y:[715.00,724.00,689.00,710.00]},{ x:'04/27/2023',y:[720.00,742.00,710.00,735.00]},{ x:'04/28/2023',y:[746.00,755.00,730.00,730.00]},{ x:'05/02/2023',y:[733.00,762.00,733.00,758.00]},{ x:'05/03/2023',y:[756.00,779.00,742.00,766.00]},{ x:'05/04/2023',y:[775.00,842.00,773.00,837.00]},{ x:'05/05/2023',y:[844.00,850.00,823.00,832.00]},{ x:'05/08/2023',y:[840.00,842.00,780.00,780.00]},{ x:'05/09/2023',y:[795.00,813.00,770.00,779.00]},{ x:'05/10/2023',y:[790.00,809.00,776.00,782.00]},{ x:'05/11/2023',y:[765.00,786.00,756.00,770.00]},{ x:'05/12/2023',y:[776.00,784.00,721.00,777.00]},{ x:'05/15/2023',y:[804.00,835.00,781.00,782.00]},{ x:'05/16/2023',y:[792.00,808.00,783.00,787.00]},{ x:'05/17/2023',y:[793.00,823.00,782.00,815.00]},{ x:'05/18/2023',y:[828.00,834.00,795.00,798.00]},{ x:'05/19/2023',y:[802.00,812.00,776.00,779.00]},{ x:'05/22/2023',y:[784.00,805.00,779.00,791.00]},{ x:'05/23/2023',y:[801.00,809.00,793.00,807.00]},{ x:'05/24/2023',y:[809.00,814.00,775.00,778.00]},{ x:'05/25/2023',y:[775.00,785.00,754.00,762.00]},{ x:'05/26/2023',y:[769.00,773.00,755.00,762.00]},{ x:'05/29/2023',y:[762.00,790.00,758.00,781.00]},{ x:'05/30/2023',y:[787.00,796.00,759.00,761.00]},{ x:'05/31/2023',y:[763.00,780.00,761.00,762.00]},{ x:'06/01/2023',y:[767.00,771.00,759.00,761.00]},{ x:'06/02/2023',y:[767.00,782.00,752.00,758.00]},{ x:'06/05/2023',y:[765.00,775.00,760.00,762.00]},{ x:'06/06/2023',y:[769.00,773.00,747.00,751.00]},{ x:'06/07/2023',y:[758.00,758.00,740.00,740.00]},{ x:'06/08/2023',y:[736.00,741.00,702.00,726.00]},{ x:'06/09/2023',y:[745.00,764.00,741.00,755.00]},{ x:'06/12/2023',y:[755.00,757.00,714.00,720.00]},{ x:'06/13/2023',y:[723.00,729.00,711.00,714.00]},{ x:'06/14/2023',y:[718.00,728.00,705.00,715.00]},{ x:'06/15/2023',y:[719.00,728.00,712.00,728.00]},{ x:'06/16/2023',y:[730.00,733.00,712.00,712.00]},{ x:'06/19/2023',y:[713.00,719.00,707.00,710.00]},{ x:'06/20/2023',y:[715.00,730.00,711.00,713.00]},{ x:'06/21/2023',y:[708.00,715.00,700.00,704.00]},{ x:'06/26/2023',y:[700.00,728.00,694.00,725.00]},{ x:'06/27/2023',y:[728.00,765.00,718.00,752.00]},{ x:'06/28/2023',y:[764.00,784.00,747.00,771.00]},{ x:'06/29/2023',y:[775.00,793.00,766.00,769.00]},{ x:'06/30/2023',y:[778.00,791.00,773.00,779.00]},{ x:'07/03/2023',y:[791.00,796.00,779.00,784.00]},{ x:'07/04/2023',y:[791.00,809.00,787.00,796.00]},{ x:'07/05/2023',y:[804.00,852.00,796.00,845.00]},{ x:'07/06/2023',y:[853.00,861.00,802.00,802.00]},{ x:'07/07/2023',y:[810.00,821.00,796.00,805.00]},{ x:'07/10/2023',y:[822.00,833.00,797.00,808.00]},{ x:'07/11/2023',y:[818.00,820.00,786.00,787.00]},{ x:'07/12/2023',y:[787.00,799.00,770.00,770.00]},{ x:'07/13/2023',y:[776.00,779.00,760.00,760.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6472 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());