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/26/2024',y:[432.00,436.00,424.00,424.50]},{ x:'04/29/2024',y:[430.00,441.00,428.50,435.00]},{ x:'04/30/2024',y:[434.50,444.00,430.00,441.00]},{ x:'05/02/2024',y:[441.50,444.00,436.00,437.50]},{ x:'05/03/2024',y:[447.00,463.00,445.00,460.00]},{ x:'05/06/2024',y:[466.50,467.00,459.00,459.00]},{ x:'05/07/2024',y:[464.50,464.50,452.50,453.00]},{ x:'05/08/2024',y:[452.50,459.00,448.00,455.50]},{ x:'05/09/2024',y:[461.50,467.00,451.00,451.50]},{ x:'05/10/2024',y:[456.00,456.00,446.50,448.00]},{ x:'05/13/2024',y:[450.50,454.50,448.50,453.00]},{ x:'05/14/2024',y:[453.00,489.00,453.00,488.50]},{ x:'05/15/2024',y:[518.00,535.00,510.00,513.00]},{ x:'05/16/2024',y:[519.00,527.00,510.00,524.00]},{ x:'05/17/2024',y:[524.00,530.00,518.00,530.00]},{ x:'05/20/2024',y:[542.00,548.00,530.00,540.00]},{ x:'05/21/2024',y:[540.00,542.00,526.00,535.00]},{ x:'05/22/2024',y:[536.00,537.00,517.00,518.00]},{ x:'05/23/2024',y:[518.00,537.00,513.00,533.00]},{ x:'05/24/2024',y:[526.00,529.00,522.00,526.00]},{ x:'06/11/2024',y:[550.00,558.00,540.00,545.00]},{ x:'06/12/2024',y:[578.00,598.00,577.00,591.00]},{ x:'06/13/2024',y:[595.00,600.00,583.00,599.00]},{ x:'06/14/2024',y:[606.00,632.00,597.00,630.00]},{ x:'06/17/2024',y:[630.00,651.00,624.00,628.00]},{ x:'06/18/2024',y:[647.00,647.00,618.00,630.00]},{ x:'06/19/2024',y:[638.00,650.00,626.00,626.00]},{ x:'06/20/2024',y:[630.00,639.00,622.00,637.00]},{ x:'06/21/2024',y:[628.00,645.00,627.00,645.00]},{ x:'06/24/2024',y:[644.00,662.00,639.00,650.00]},{ x:'06/25/2024',y:[647.00,675.00,637.00,675.00]},{ x:'06/26/2024',y:[673.00,682.00,657.00,668.00]},{ x:'06/27/2024',y:[668.00,674.00,662.00,663.00]},{ x:'06/28/2024',y:[668.00,676.00,661.00,662.00]},{ x:'07/01/2024',y:[670.00,671.00,649.00,656.00]},{ x:'07/02/2024',y:[659.00,669.00,652.00,662.00]},{ x:'07/03/2024',y:[675.00,678.00,654.00,662.00]},{ x:'07/04/2024',y:[668.00,671.00,619.00,632.00]},{ x:'07/05/2024',y:[632.00,636.00,600.00,611.00]},{ x:'07/12/2024',y:[599.00,617.00,590.00,613.00]},{ x:'07/15/2024',y:[613.00,619.00,604.00,609.00]},{ x:'07/16/2024',y:[616.00,620.00,608.00,612.00]},{ x:'07/17/2024',y:[615.00,617.00,598.00,605.00]},{ x:'07/18/2024',y:[590.00,599.00,578.00,590.00]},{ x:'07/19/2024',y:[595.00,598.00,580.00,582.00]},{ x:'07/22/2024',y:[576.00,577.00,559.00,572.00]},{ x:'07/23/2024',y:[577.00,580.00,567.00,574.00]},{ x:'07/26/2024',y:[557.00,557.00,519.00,521.00]},{ x:'07/29/2024',y:[530.00,531.00,509.00,512.00]},{ x:'07/30/2024',y:[508.00,532.00,502.00,527.00]},{ x:'07/31/2024',y:[521.00,534.00,520.00,524.00]},{ x:'08/01/2024',y:[533.00,533.00,517.00,528.00]},{ x:'08/02/2024',y:[514.00,523.00,502.00,503.00]},{ x:'08/05/2024',y:[488.00,488.00,453.00,453.00]},{ x:'08/06/2024',y:[470.00,470.00,425.00,453.00]},{ x:'08/07/2024',y:[460.50,498.00,458.00,498.00]},{ x:'08/08/2024',y:[498.00,515.00,489.00,501.00]},{ x:'08/09/2024',y:[520.00,520.00,493.50,497.00]},{ x:'08/12/2024',y:[501.00,511.00,499.50,508.00]},{ x:'08/13/2024',y:[509.00,532.00,508.00,532.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3406 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());