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/12/2024',y:[545.00,557.00,544.00,545.00]},{ x:'04/15/2024',y:[545.00,552.00,541.00,545.00]},{ x:'04/16/2024',y:[545.00,545.00,535.00,535.00]},{ x:'04/17/2024',y:[540.00,547.00,538.00,544.00]},{ x:'04/18/2024',y:[542.00,553.00,542.00,547.00]},{ x:'04/19/2024',y:[540.00,541.00,520.00,520.00]},{ x:'04/22/2024',y:[522.00,522.00,501.00,503.00]},{ x:'04/23/2024',y:[507.00,512.00,502.00,504.00]},{ x:'04/24/2024',y:[518.00,527.00,513.00,525.00]},{ x:'04/25/2024',y:[516.00,517.00,507.00,507.00]},{ x:'04/26/2024',y:[514.00,516.00,511.00,511.00]},{ x:'04/29/2024',y:[514.00,519.00,513.00,518.00]},{ x:'04/30/2024',y:[520.00,526.00,518.00,522.00]},{ x:'05/02/2024',y:[519.00,519.00,513.00,514.00]},{ x:'05/03/2024',y:[520.00,526.00,517.00,520.00]},{ x:'05/06/2024',y:[527.00,531.00,524.00,529.00]},{ x:'05/07/2024',y:[533.00,534.00,520.00,527.00]},{ x:'05/08/2024',y:[525.00,525.00,509.00,512.00]},{ x:'05/09/2024',y:[510.00,513.00,503.00,504.00]},{ x:'05/10/2024',y:[506.00,515.00,506.00,515.00]},{ x:'05/13/2024',y:[515.00,518.00,510.00,516.00]},{ x:'05/14/2024',y:[513.00,516.00,510.00,513.00]},{ x:'05/15/2024',y:[516.00,517.00,509.00,513.00]},{ x:'05/16/2024',y:[515.00,518.00,513.00,517.00]},{ x:'05/17/2024',y:[518.00,520.00,515.00,519.00]},{ x:'05/20/2024',y:[522.00,525.00,518.00,524.00]},{ x:'05/21/2024',y:[523.00,523.00,513.00,517.00]},{ x:'05/22/2024',y:[520.00,521.00,516.00,520.00]},{ x:'05/23/2024',y:[521.00,521.00,516.00,520.00]},{ x:'05/24/2024',y:[518.00,525.00,514.00,525.00]},{ x:'06/11/2024',y:[540.00,542.00,532.00,535.00]},{ x:'06/12/2024',y:[535.00,546.00,534.00,543.00]},{ x:'06/13/2024',y:[547.00,547.00,536.00,543.00]},{ x:'06/14/2024',y:[541.00,542.00,528.00,534.00]},{ x:'06/17/2024',y:[534.00,535.00,526.00,530.00]},{ x:'06/18/2024',y:[533.00,537.00,527.00,532.00]},{ x:'06/19/2024',y:[535.00,550.00,534.00,540.00]},{ x:'06/20/2024',y:[543.00,548.00,540.00,543.00]},{ x:'06/21/2024',y:[539.00,543.00,535.00,540.00]},{ x:'06/24/2024',y:[540.00,540.00,530.00,530.00]},{ x:'06/25/2024',y:[530.00,533.00,527.00,528.00]},{ x:'06/26/2024',y:[530.00,535.00,529.00,530.00]},{ x:'06/27/2024',y:[532.00,544.00,529.00,538.00]},{ x:'06/28/2024',y:[540.00,542.00,536.00,539.00]},{ x:'07/01/2024',y:[542.00,572.00,540.00,565.00]},{ x:'07/02/2024',y:[564.00,571.00,561.00,563.00]},{ x:'07/03/2024',y:[563.00,564.00,553.00,560.00]},{ x:'07/04/2024',y:[568.00,585.00,567.00,581.00]},{ x:'07/05/2024',y:[587.00,588.00,576.00,582.00]},{ x:'07/12/2024',y:[584.00,592.00,578.00,588.00]},{ x:'07/15/2024',y:[589.00,591.00,584.00,588.00]},{ x:'07/16/2024',y:[588.00,588.00,578.00,584.00]},{ x:'07/17/2024',y:[583.00,583.00,571.00,576.00]},{ x:'07/18/2024',y:[568.00,576.00,556.00,565.00]},{ x:'07/19/2024',y:[564.00,567.00,540.00,544.00]},{ x:'07/22/2024',y:[545.00,545.00,517.00,519.00]},{ x:'07/23/2024',y:[525.00,527.00,509.00,512.00]},{ x:'07/26/2024',y:[501.00,510.00,498.00,506.00]},{ x:'07/29/2024',y:[510.00,517.00,498.00,498.00]},{ x:'07/30/2024',y:[498.00,498.00,480.50,493.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6488 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());