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:'01/22/2024',y:[528.00,543.00,519.00,542.00]},{ x:'01/23/2024',y:[539.00,541.00,522.00,522.00]},{ x:'01/24/2024',y:[520.00,526.00,516.00,522.00]},{ x:'01/25/2024',y:[521.00,530.00,513.00,513.00]},{ x:'01/26/2024',y:[512.00,516.00,509.00,510.00]},{ x:'01/29/2024',y:[510.00,524.00,508.00,519.00]},{ x:'01/30/2024',y:[519.00,522.00,511.00,515.00]},{ x:'01/31/2024',y:[516.00,533.00,514.00,529.00]},{ x:'02/01/2024',y:[533.00,544.00,529.00,542.00]},{ x:'02/02/2024',y:[548.00,564.00,542.00,562.00]},{ x:'02/05/2024',y:[553.00,559.00,536.00,548.00]},{ x:'02/15/2024',y:[530.00,539.00,498.00,539.00]},{ x:'02/16/2024',y:[539.00,558.00,539.00,558.00]},{ x:'02/19/2024',y:[561.00,570.00,554.00,564.00]},{ x:'02/20/2024',y:[561.00,580.00,559.00,569.00]},{ x:'02/21/2024',y:[555.00,561.00,542.00,547.00]},{ x:'02/22/2024',y:[550.00,555.00,526.00,535.00]},{ x:'02/23/2024',y:[545.00,550.00,531.00,532.00]},{ x:'02/26/2024',y:[535.00,544.00,514.00,520.00]},{ x:'02/27/2024',y:[515.00,518.00,500.00,502.00]},{ 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]} ] }], 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());