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:[289.50,291.50,285.50,285.50]},{ x:'04/29/2024',y:[286.00,296.00,286.00,296.00]},{ x:'04/30/2024',y:[296.00,299.50,293.50,293.50]},{ x:'05/02/2024',y:[300.00,307.00,297.00,299.50]},{ x:'05/03/2024',y:[300.50,312.50,299.50,309.00]},{ x:'05/06/2024',y:[316.00,322.00,314.00,315.00]},{ x:'05/07/2024',y:[317.00,321.00,314.00,315.50]},{ x:'05/08/2024',y:[318.50,318.50,314.00,316.00]},{ x:'05/09/2024',y:[317.00,318.00,309.50,310.50]},{ x:'05/10/2024',y:[311.50,315.00,308.00,312.50]},{ x:'05/13/2024',y:[314.00,320.00,310.50,319.50]},{ x:'05/14/2024',y:[324.50,349.00,323.00,346.50]},{ x:'05/15/2024',y:[351.50,360.00,348.00,353.00]},{ x:'05/16/2024',y:[357.00,388.00,357.00,388.00]},{ x:'05/17/2024',y:[395.00,423.50,389.00,408.50]},{ x:'05/20/2024',y:[416.00,418.00,408.50,418.00]},{ x:'05/21/2024',y:[432.00,441.00,427.00,430.00]},{ x:'05/22/2024',y:[419.50,419.50,400.00,406.50]},{ x:'05/23/2024',y:[406.50,418.50,406.50,417.00]},{ x:'05/24/2024',y:[420.00,429.00,420.00,424.00]},{ x:'06/11/2024',y:[490.00,500.00,474.00,481.00]},{ x:'06/12/2024',y:[485.00,500.00,480.00,486.00]},{ x:'06/13/2024',y:[486.50,497.50,482.50,488.00]},{ x:'06/14/2024',y:[493.00,494.00,480.50,482.00]},{ x:'06/17/2024',y:[485.00,500.00,483.50,487.50]},{ x:'06/18/2024',y:[489.50,499.00,489.50,493.00]},{ x:'06/19/2024',y:[496.00,496.50,482.00,486.00]},{ x:'06/20/2024',y:[488.50,495.50,485.00,491.00]},{ x:'06/21/2024',y:[493.50,500.00,481.00,482.50]},{ x:'06/24/2024',y:[483.00,498.00,483.00,494.00]},{ x:'06/25/2024',y:[497.50,500.00,491.50,494.50]},{ x:'06/26/2024',y:[495.50,543.00,493.50,543.00]},{ x:'06/27/2024',y:[546.00,564.00,540.00,544.00]},{ x:'06/28/2024',y:[548.00,567.00,547.00,560.00]},{ x:'07/01/2024',y:[565.00,596.00,561.00,582.00]},{ x:'07/02/2024',y:[582.00,587.00,570.00,573.00]},{ x:'07/03/2024',y:[577.00,587.00,572.00,578.00]},{ x:'07/04/2024',y:[578.00,584.00,524.00,554.00]},{ x:'07/05/2024',y:[560.00,577.00,559.00,567.00]},{ x:'07/12/2024',y:[588.00,597.00,580.00,593.00]},{ x:'07/15/2024',y:[597.00,622.00,594.00,610.00]},{ x:'07/16/2024',y:[611.00,616.00,601.00,605.00]},{ x:'07/17/2024',y:[607.00,649.00,607.00,645.00]},{ x:'07/18/2024',y:[660.00,670.00,642.00,645.00]},{ x:'07/19/2024',y:[648.00,661.00,641.00,648.00]},{ x:'07/22/2024',y:[652.00,660.00,602.00,624.00]},{ x:'07/23/2024',y:[635.00,658.00,625.00,658.00]},{ x:'07/26/2024',y:[646.00,667.00,646.00,649.00]},{ x:'07/29/2024',y:[653.00,656.00,615.00,621.00]},{ x:'07/30/2024',y:[614.00,655.00,605.00,655.00]},{ x:'07/31/2024',y:[648.00,659.00,643.00,656.00]},{ x:'08/01/2024',y:[663.00,690.00,654.00,686.00]},{ x:'08/02/2024',y:[673.00,682.00,640.00,645.00]},{ x:'08/05/2024',y:[620.00,623.00,582.00,606.00]},{ x:'08/06/2024',y:[644.00,648.00,599.00,630.00]},{ x:'08/07/2024',y:[635.00,673.00,630.00,670.00]},{ x:'08/08/2024',y:[665.00,684.00,659.00,661.00]},{ x:'08/09/2024',y:[675.00,695.00,671.00,688.00]},{ x:'08/12/2024',y:[688.00,715.00,688.00,708.00]},{ x:'08/13/2024',y:[712.00,730.00,712.00,730.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6446 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());