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:'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]},{ x:'04/30/2024',y:[526.00,526.00,517.00,518.00]},{ x:'05/02/2024',y:[516.00,517.00,506.00,511.00]},{ x:'05/03/2024',y:[520.00,522.00,508.00,511.00]},{ x:'05/06/2024',y:[511.00,515.00,508.00,511.00]},{ x:'05/07/2024',y:[521.00,527.00,509.00,525.00]},{ x:'05/08/2024',y:[525.00,531.00,522.00,528.00]},{ x:'05/09/2024',y:[533.00,538.00,530.00,532.00]},{ x:'05/10/2024',y:[532.00,532.00,516.00,517.00]},{ x:'05/13/2024',y:[520.00,531.00,520.00,527.00]},{ x:'05/14/2024',y:[535.00,536.00,525.00,536.00]},{ x:'05/15/2024',y:[540.00,541.00,530.00,531.00]},{ x:'05/16/2024',y:[537.00,547.00,536.00,547.00]},{ x:'05/17/2024',y:[537.00,537.00,527.00,530.00]},{ x:'05/20/2024',y:[534.00,539.00,525.00,531.00]},{ x:'05/21/2024',y:[531.00,534.00,525.00,529.00]},{ x:'05/22/2024',y:[534.00,538.00,530.00,537.00]},{ x:'05/23/2024',y:[531.00,545.00,531.00,539.00]},{ x:'05/24/2024',y:[532.00,534.00,528.00,528.00]},{ x:'06/11/2024',y:[528.00,538.00,526.00,534.00]},{ x:'06/12/2024',y:[531.00,547.00,531.00,541.00]},{ x:'06/13/2024',y:[550.00,574.00,544.00,573.00]},{ x:'06/14/2024',y:[580.00,580.00,564.00,569.00]},{ x:'06/17/2024',y:[571.00,571.00,559.00,561.00]},{ x:'06/18/2024',y:[561.00,567.00,556.00,561.00]},{ x:'06/19/2024',y:[567.00,567.00,555.00,558.00]},{ x:'06/20/2024',y:[560.00,577.00,559.00,563.00]},{ x:'06/21/2024',y:[560.00,564.00,555.00,560.00]},{ x:'06/24/2024',y:[554.00,556.00,529.00,531.00]},{ x:'06/25/2024',y:[534.00,535.00,525.00,532.00]},{ x:'06/26/2024',y:[537.00,537.00,526.00,530.00]},{ x:'06/27/2024',y:[525.00,530.00,517.00,530.00]},{ x:'06/28/2024',y:[531.00,547.00,529.00,546.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());