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/29/2024',y:[739.00,776.00,736.00,768.00]},{ x:'04/30/2024',y:[780.00,781.00,747.00,749.00]},{ x:'05/02/2024',y:[748.00,769.00,745.00,769.00]},{ x:'05/03/2024',y:[808.00,826.00,783.00,784.00]},{ x:'05/06/2024',y:[800.00,808.00,789.00,792.00]},{ x:'05/07/2024',y:[788.00,788.00,752.00,763.00]},{ x:'05/08/2024',y:[763.00,764.00,749.00,758.00]},{ x:'05/09/2024',y:[758.00,763.00,732.00,733.00]},{ x:'05/10/2024',y:[734.00,752.00,730.00,746.00]},{ x:'05/13/2024',y:[748.00,754.00,734.00,743.00]},{ x:'05/14/2024',y:[741.00,760.00,741.00,759.00]},{ x:'05/15/2024',y:[757.00,769.00,744.00,763.00]},{ x:'05/16/2024',y:[769.00,784.00,761.00,772.00]},{ x:'05/17/2024',y:[769.00,771.00,743.00,743.00]},{ x:'05/20/2024',y:[740.00,741.00,728.00,731.00]},{ x:'05/21/2024',y:[733.00,741.00,725.00,725.00]},{ x:'05/22/2024',y:[727.00,736.00,725.00,726.00]},{ x:'05/23/2024',y:[730.00,730.00,714.00,721.00]},{ x:'05/24/2024',y:[713.00,722.00,705.00,721.00]},{ x:'06/11/2024',y:[797.00,800.00,784.00,786.00]},{ x:'06/12/2024',y:[788.00,826.00,788.00,808.00]},{ x:'06/13/2024',y:[822.00,864.00,811.00,864.00]},{ x:'06/14/2024',y:[871.00,904.00,865.00,875.00]},{ x:'06/17/2024',y:[868.00,868.00,835.00,835.00]},{ x:'06/18/2024',y:[840.00,859.00,827.00,856.00]},{ x:'06/19/2024',y:[864.00,897.00,853.00,893.00]},{ x:'06/20/2024',y:[898.00,927.00,875.00,878.00]},{ x:'06/21/2024',y:[878.00,896.00,874.00,877.00]},{ x:'06/24/2024',y:[875.00,878.00,860.00,862.00]},{ x:'06/25/2024',y:[856.00,871.00,841.00,865.00]},{ x:'06/26/2024',y:[868.00,876.00,846.00,846.00]},{ x:'06/27/2024',y:[848.00,850.00,835.00,840.00]},{ x:'06/28/2024',y:[839.00,847.00,832.00,838.00]},{ x:'07/01/2024',y:[839.00,844.00,819.00,820.00]},{ x:'07/02/2024',y:[819.00,830.00,813.00,818.00]},{ x:'07/03/2024',y:[845.00,866.00,825.00,837.00]},{ x:'07/04/2024',y:[843.00,849.00,829.00,835.00]},{ x:'07/05/2024',y:[855.00,864.00,840.00,862.00]},{ x:'07/12/2024',y:[876.00,878.00,857.00,860.00]},{ x:'07/15/2024',y:[862.00,867.00,851.00,860.00]},{ x:'07/16/2024',y:[862.00,887.00,862.00,863.00]},{ x:'07/17/2024',y:[852.00,865.00,838.00,860.00]},{ x:'07/18/2024',y:[844.00,868.00,838.00,847.00]},{ x:'07/19/2024',y:[848.00,855.00,826.00,826.00]},{ x:'07/22/2024',y:[826.00,831.00,781.00,783.00]},{ x:'07/23/2024',y:[797.00,800.00,784.00,788.00]},{ x:'07/26/2024',y:[756.00,779.00,752.00,770.00]},{ x:'07/29/2024',y:[785.00,787.00,725.00,725.00]},{ x:'07/30/2024',y:[729.00,735.00,706.00,732.00]},{ x:'07/31/2024',y:[725.00,740.00,722.00,738.00]},{ x:'08/01/2024',y:[757.00,774.00,746.00,772.00]},{ x:'08/02/2024',y:[742.00,768.00,737.00,738.00]},{ x:'08/05/2024',y:[711.00,711.00,665.00,665.00]},{ x:'08/06/2024',y:[671.00,690.00,609.00,665.00]},{ x:'08/07/2024',y:[651.00,715.00,651.00,703.00]},{ x:'08/08/2024',y:[702.00,728.00,694.00,720.00]},{ x:'08/09/2024',y:[738.00,744.00,706.00,708.00]},{ x:'08/12/2024',y:[712.00,724.00,706.00,718.00]},{ x:'08/13/2024',y:[725.00,737.00,713.00,737.00]},{ x:'08/14/2024',y:[750.00,774.00,745.00,752.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4966 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());