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:'02/29/2024',y:[505.00,519.00,498.00,519.00]},{ x:'03/01/2024',y:[510.00,512.00,504.00,504.00]},{ x:'03/04/2024',y:[509.00,516.00,508.00,508.00]},{ x:'03/05/2024',y:[509.00,520.00,505.00,514.00]},{ x:'03/06/2024',y:[509.00,517.00,503.00,515.00]},{ x:'03/07/2024',y:[511.00,529.00,504.00,507.00]},{ x:'03/08/2024',y:[515.00,517.00,484.50,491.00]},{ x:'03/11/2024',y:[485.00,496.50,476.50,491.00]},{ x:'03/12/2024',y:[478.00,486.50,468.00,475.50]},{ x:'03/13/2024',y:[472.00,475.50,462.00,465.00]},{ x:'03/14/2024',y:[467.00,473.50,460.00,465.50]},{ x:'03/15/2024',y:[459.00,465.00,450.50,454.00]},{ x:'03/18/2024',y:[458.00,468.00,453.00,457.50]},{ x:'03/19/2024',y:[455.50,459.00,444.00,444.00]},{ x:'03/20/2024',y:[446.00,453.00,437.50,437.50]},{ x:'03/21/2024',y:[445.50,464.50,444.00,459.00]},{ x:'03/22/2024',y:[468.00,484.00,465.00,481.00]},{ x:'03/25/2024',y:[486.00,486.00,471.00,475.00]},{ x:'03/26/2024',y:[480.00,480.00,463.50,465.50]},{ x:'03/27/2024',y:[460.00,466.50,452.00,453.00]},{ x:'03/28/2024',y:[451.00,462.00,448.00,458.50]},{ x:'03/29/2024',y:[458.50,466.00,458.00,463.00]},{ x:'04/01/2024',y:[465.50,470.00,458.00,460.50]},{ x:'04/02/2024',y:[466.00,471.00,451.50,456.00]},{ x:'04/03/2024',y:[454.50,463.50,449.00,461.00]},{ x:'04/08/2024',y:[457.00,477.00,457.00,466.00]},{ x:'04/09/2024',y:[498.00,498.00,462.50,465.00]},{ x:'04/10/2024',y:[468.50,482.50,466.00,476.00]},{ x:'04/11/2024',y:[476.00,484.00,472.50,473.00]},{ x:'04/12/2024',y:[468.50,471.50,456.00,456.00]},{ x:'04/15/2024',y:[450.00,451.50,431.00,431.00]},{ x:'04/16/2024',y:[431.00,431.00,415.50,416.50]},{ x:'04/17/2024',y:[409.50,420.00,407.50,408.00]},{ x:'04/18/2024',y:[404.50,412.00,401.50,409.00]},{ x:'04/19/2024',y:[402.00,406.50,387.00,401.00]},{ x:'04/22/2024',y:[395.50,399.50,383.00,384.50]},{ x:'04/23/2024',y:[397.00,410.50,394.00,405.00]},{ x:'04/24/2024',y:[425.50,427.00,408.00,412.00]},{ x:'04/25/2024',y:[410.00,415.00,401.00,401.00]},{ x:'04/26/2024',y:[405.00,432.00,405.00,428.00]},{ x:'04/29/2024',y:[450.00,467.00,447.00,447.50]},{ x:'04/30/2024',y:[448.00,482.00,448.00,461.50]},{ x:'05/02/2024',y:[456.00,478.00,452.00,469.00]},{ x:'05/03/2024',y:[470.00,470.50,435.50,442.50]},{ x:'05/06/2024',y:[450.00,464.50,446.00,458.50]},{ x:'05/07/2024',y:[458.00,460.00,440.00,446.00]},{ x:'05/08/2024',y:[446.00,455.00,438.00,445.00]},{ x:'05/09/2024',y:[443.50,454.50,442.00,444.00]},{ x:'05/10/2024',y:[455.00,475.00,454.50,461.50]},{ x:'05/13/2024',y:[461.50,463.00,450.00,454.00]},{ x:'05/14/2024',y:[462.50,472.00,462.50,470.00]},{ x:'05/15/2024',y:[468.50,474.00,461.50,469.50]},{ x:'05/16/2024',y:[485.00,504.00,484.50,494.50]},{ x:'05/17/2024',y:[493.50,505.00,489.00,499.50]},{ x:'05/20/2024',y:[500.00,506.00,496.50,504.00]},{ x:'05/21/2024',y:[504.00,505.00,495.00,500.00]},{ x:'05/22/2024',y:[498.00,512.00,498.00,506.00]},{ x:'05/23/2024',y:[506.00,515.00,500.00,510.00]},{ x:'05/24/2024',y:[510.00,526.00,506.00,512.00]},{ x:'06/11/2024',y:[545.00,548.00,524.00,529.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2345 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());