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/24/2024',y:[758.00,770.00,742.00,757.00]},{ x:'04/25/2024',y:[758.00,770.00,754.00,756.00]},{ x:'04/26/2024',y:[764.00,767.00,749.00,752.00]},{ x:'04/29/2024',y:[757.00,790.00,756.00,783.00]},{ x:'04/30/2024',y:[777.00,783.00,763.00,765.00]},{ x:'05/02/2024',y:[772.00,780.00,752.00,752.00]},{ x:'05/03/2024',y:[762.00,768.00,743.00,746.00]},{ x:'05/06/2024',y:[755.00,773.00,742.00,742.00]},{ x:'05/07/2024',y:[743.00,743.00,705.00,719.00]},{ x:'05/08/2024',y:[719.00,757.00,717.00,743.00]},{ x:'05/09/2024',y:[770.00,782.00,711.00,715.00]},{ x:'05/10/2024',y:[725.00,731.00,700.00,713.00]},{ x:'05/13/2024',y:[723.00,735.00,706.00,708.00]},{ x:'05/14/2024',y:[709.00,715.00,695.00,710.00]},{ x:'05/15/2024',y:[730.00,738.00,720.00,728.00]},{ x:'05/16/2024',y:[735.00,745.00,731.00,741.00]},{ x:'05/17/2024',y:[751.00,805.00,731.00,800.00]},{ x:'05/20/2024',y:[811.00,814.00,780.00,787.00]},{ x:'05/21/2024',y:[793.00,795.00,765.00,767.00]},{ x:'05/22/2024',y:[766.00,771.00,754.00,764.00]},{ x:'05/23/2024',y:[764.00,799.00,762.00,768.00]},{ x:'05/24/2024',y:[767.00,770.00,752.00,752.00]},{ x:'06/11/2024',y:[774.00,784.00,762.00,765.00]},{ x:'06/12/2024',y:[777.00,792.00,765.00,768.00]},{ x:'06/13/2024',y:[770.00,787.00,765.00,773.00]},{ x:'06/14/2024',y:[776.00,786.00,771.00,780.00]},{ x:'06/17/2024',y:[786.00,798.00,770.00,772.00]},{ x:'06/18/2024',y:[774.00,788.00,772.00,781.00]},{ x:'06/19/2024',y:[786.00,789.00,773.00,777.00]},{ x:'06/20/2024',y:[784.00,793.00,782.00,791.00]},{ x:'06/21/2024',y:[809.00,831.00,775.00,775.00]},{ x:'06/24/2024',y:[777.00,780.00,762.00,765.00]},{ x:'06/25/2024',y:[777.00,784.00,758.00,763.00]},{ x:'06/26/2024',y:[767.00,809.00,767.00,805.00]},{ x:'06/27/2024',y:[800.00,816.00,786.00,789.00]},{ x:'06/28/2024',y:[794.00,829.00,790.00,829.00]},{ x:'07/01/2024',y:[831.00,891.00,825.00,880.00]},{ x:'07/02/2024',y:[875.00,880.00,853.00,858.00]},{ x:'07/03/2024',y:[862.00,895.00,854.00,871.00]},{ x:'07/04/2024',y:[874.00,887.00,845.00,862.00]},{ x:'07/05/2024',y:[866.00,884.00,863.00,876.00]},{ x:'07/12/2024',y:[857.00,869.00,853.00,860.00]},{ x:'07/15/2024',y:[868.00,946.00,864.00,946.00]},{ x:'07/16/2024',y:[950.00,975.00,932.00,937.00]},{ x:'07/17/2024',y:[943.00,974.00,935.00,955.00]},{ x:'07/18/2024',y:[966.00,974.00,894.00,919.00]},{ x:'07/19/2024',y:[930.00,940.00,900.00,900.00]},{ x:'07/22/2024',y:[907.00,920.00,872.00,876.00]},{ x:'07/23/2024',y:[888.00,903.00,879.00,896.00]},{ x:'07/26/2024',y:[878.00,893.00,861.00,876.00]},{ x:'07/29/2024',y:[885.00,896.00,830.00,832.00]},{ x:'07/30/2024',y:[832.00,838.00,803.00,828.00]},{ x:'07/31/2024',y:[826.00,832.00,813.00,820.00]},{ x:'08/01/2024',y:[831.00,836.00,822.00,829.00]},{ x:'08/02/2024',y:[820.00,820.00,788.00,789.00]},{ x:'08/05/2024',y:[756.00,757.00,711.00,715.00]},{ x:'08/06/2024',y:[750.00,770.00,712.00,751.00]},{ x:'08/07/2024',y:[760.00,791.00,758.00,780.00]},{ x:'08/08/2024',y:[775.00,786.00,755.00,771.00]},{ x:'08/09/2024',y:[792.00,808.00,779.00,783.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());