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/23/2024',y:[451.00,452.00,441.50,447.00]},{ x:'01/24/2024',y:[453.50,456.00,443.50,448.50]},{ x:'01/25/2024',y:[453.00,459.50,452.00,459.00]},{ x:'01/26/2024',y:[450.50,457.50,450.00,453.50]},{ x:'01/29/2024',y:[451.50,458.00,449.00,455.50]},{ x:'01/30/2024',y:[455.00,459.00,453.50,453.50]},{ x:'01/31/2024',y:[462.00,470.00,456.00,469.50]},{ x:'02/01/2024',y:[473.00,473.00,460.50,464.50]},{ x:'02/02/2024',y:[466.50,483.50,458.00,469.50]},{ x:'02/05/2024',y:[469.50,471.00,458.50,463.50]},{ x:'02/15/2024',y:[470.50,471.00,458.50,469.00]},{ x:'02/16/2024',y:[470.00,476.00,466.50,473.50]},{ x:'02/19/2024',y:[475.00,475.00,469.00,470.00]},{ x:'02/20/2024',y:[488.00,517.00,484.00,487.50]},{ x:'02/21/2024',y:[481.50,507.00,479.00,501.00]},{ x:'02/22/2024',y:[508.00,533.00,506.00,532.00]},{ x:'02/23/2024',y:[554.00,563.00,540.00,547.00]},{ x:'02/26/2024',y:[541.00,556.00,535.00,551.00]},{ x:'02/27/2024',y:[557.00,582.00,554.00,567.00]},{ x:'02/29/2024',y:[566.00,573.00,556.00,569.00]},{ x:'03/01/2024',y:[578.00,579.00,565.00,565.00]},{ x:'03/04/2024',y:[566.00,578.00,555.00,573.00]},{ x:'03/05/2024',y:[577.00,587.00,568.00,584.00]},{ x:'03/06/2024',y:[586.00,611.00,578.00,600.00]},{ x:'03/07/2024',y:[604.00,614.00,593.00,601.00]},{ x:'03/08/2024',y:[619.00,620.00,578.00,587.00]},{ x:'03/11/2024',y:[590.00,605.00,589.00,604.00]},{ x:'03/12/2024',y:[603.00,604.00,593.00,601.00]},{ x:'03/13/2024',y:[598.00,613.00,590.00,593.00]},{ x:'03/14/2024',y:[589.00,592.00,567.00,580.00]},{ x:'03/15/2024',y:[578.00,594.00,572.00,594.00]},{ x:'03/18/2024',y:[580.00,592.00,573.00,590.00]},{ x:'03/19/2024',y:[590.00,598.00,582.00,591.00]},{ x:'03/20/2024',y:[595.00,603.00,584.00,588.00]},{ x:'03/21/2024',y:[598.00,598.00,570.00,584.00]},{ x:'03/22/2024',y:[587.00,592.00,576.00,591.00]},{ x:'03/25/2024',y:[592.00,592.00,582.00,584.00]},{ x:'03/26/2024',y:[587.00,590.00,554.00,565.00]},{ x:'03/27/2024',y:[574.00,574.00,560.00,573.00]},{ x:'03/28/2024',y:[568.00,570.00,549.00,557.00]},{ x:'03/29/2024',y:[553.00,561.00,551.00,560.00]},{ x:'04/01/2024',y:[560.00,563.00,553.00,559.00]},{ x:'04/02/2024',y:[559.00,572.00,559.00,568.00]},{ x:'04/03/2024',y:[573.00,577.00,564.00,571.00]},{ x:'04/08/2024',y:[570.00,573.00,563.00,567.00]},{ x:'04/09/2024',y:[572.00,576.00,562.00,568.00]},{ x:'04/10/2024',y:[568.00,577.00,566.00,571.00]},{ x:'04/11/2024',y:[575.00,575.00,560.00,567.00]},{ x:'04/12/2024',y:[562.00,571.00,562.00,569.00]},{ x:'04/15/2024',y:[567.00,567.00,556.00,561.00]},{ x:'04/16/2024',y:[549.00,557.00,547.00,551.00]},{ x:'04/17/2024',y:[555.00,578.00,555.00,570.00]},{ x:'04/18/2024',y:[576.00,577.00,565.00,574.00]},{ x:'04/19/2024',y:[567.00,570.00,548.00,552.00]},{ x:'04/22/2024',y:[537.00,541.00,501.00,504.00]},{ x:'04/23/2024',y:[514.00,518.00,505.00,510.00]},{ x:'04/24/2024',y:[527.00,540.00,524.00,538.00]},{ x:'04/25/2024',y:[548.00,548.00,520.00,523.00]},{ x:'04/26/2024',y:[530.00,531.00,514.00,520.00]},{ x:'04/29/2024',y:[523.00,536.00,520.00,527.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2379 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());