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/22/2023',y:[846.00,885.00,845.00,880.00]},{ x:'03/23/2023',y:[885.00,890.00,868.00,890.00]},{ x:'03/24/2023',y:[894.00,902.00,875.00,891.00]},{ x:'03/27/2023',y:[891.00,926.00,883.00,923.00]},{ x:'03/28/2023',y:[920.00,948.00,905.00,912.00]},{ x:'03/29/2023',y:[923.00,940.00,879.00,900.00]},{ x:'03/30/2023',y:[915.00,917.00,886.00,891.00]},{ x:'03/31/2023',y:[890.00,905.00,883.00,903.00]},{ x:'04/06/2023',y:[867.00,883.00,853.00,858.00]},{ x:'04/07/2023',y:[869.00,880.00,856.00,880.00]},{ x:'04/10/2023',y:[882.00,896.00,877.00,877.00]},{ x:'04/11/2023',y:[877.00,885.00,875.00,877.00]},{ x:'04/12/2023',y:[880.00,888.00,875.00,886.00]},{ x:'04/13/2023',y:[886.00,904.00,853.00,855.00]},{ x:'04/14/2023',y:[868.00,868.00,851.00,855.00]},{ x:'04/17/2023',y:[858.00,858.00,837.00,839.00]},{ x:'04/18/2023',y:[845.00,877.00,845.00,870.00]},{ x:'04/19/2023',y:[877.00,898.00,865.00,870.00]},{ x:'04/20/2023',y:[881.00,881.00,853.00,855.00]},{ x:'04/21/2023',y:[853.00,869.00,837.00,841.00]},{ x:'04/24/2023',y:[841.00,850.00,833.00,835.00]},{ x:'04/25/2023',y:[844.00,844.00,803.00,804.00]},{ x:'04/26/2023',y:[795.00,815.00,794.00,813.00]},{ x:'04/27/2023',y:[815.00,815.00,771.00,804.00]},{ x:'04/28/2023',y:[830.00,832.00,812.00,829.00]},{ x:'05/02/2023',y:[832.00,850.00,813.00,813.00]},{ x:'05/03/2023',y:[828.00,828.00,803.00,805.00]},{ x:'05/04/2023',y:[780.00,791.00,760.00,761.00]},{ x:'05/05/2023',y:[761.00,761.00,732.00,732.00]},{ x:'05/08/2023',y:[741.00,743.00,730.00,738.00]},{ x:'05/09/2023',y:[745.00,746.00,731.00,735.00]},{ x:'05/10/2023',y:[739.00,739.00,726.00,731.00]},{ x:'05/11/2023',y:[736.00,742.00,715.00,718.00]},{ x:'05/12/2023',y:[721.00,731.00,718.00,720.00]},{ x:'05/15/2023',y:[719.00,721.00,706.00,716.00]},{ x:'05/16/2023',y:[725.00,725.00,715.00,716.00]},{ x:'05/17/2023',y:[713.00,722.00,698.00,720.00]},{ x:'05/18/2023',y:[720.00,738.00,720.00,737.00]},{ x:'05/19/2023',y:[743.00,745.00,721.00,722.00]},{ x:'05/22/2023',y:[718.00,721.00,710.00,712.00]},{ x:'05/23/2023',y:[713.00,723.00,705.00,710.00]},{ x:'05/24/2023',y:[710.00,718.00,702.00,705.00]},{ x:'05/25/2023',y:[705.00,708.00,699.00,700.00]},{ x:'05/26/2023',y:[701.00,708.00,699.00,702.00]},{ x:'05/29/2023',y:[702.00,708.00,702.00,703.00]},{ x:'05/30/2023',y:[704.00,708.00,689.00,702.00]},{ x:'05/31/2023',y:[699.00,711.00,699.00,699.00]},{ x:'06/01/2023',y:[698.00,707.00,695.00,695.00]},{ x:'06/02/2023',y:[700.00,712.00,695.00,710.00]},{ x:'06/05/2023',y:[703.00,708.00,693.00,693.00]},{ x:'06/06/2023',y:[694.00,702.00,691.00,700.00]},{ x:'06/07/2023',y:[700.00,702.00,691.00,693.00]},{ x:'06/08/2023',y:[692.00,692.00,648.00,662.00]},{ x:'06/09/2023',y:[670.00,684.00,662.00,677.00]},{ x:'06/12/2023',y:[681.00,692.00,678.00,680.00]},{ x:'06/13/2023',y:[689.00,701.00,689.00,692.00]},{ x:'06/14/2023',y:[690.00,690.00,672.00,673.00]},{ x:'06/15/2023',y:[676.00,681.00,672.00,679.00]},{ x:'06/16/2023',y:[682.00,683.00,670.00,670.00]},{ x:'06/19/2023',y:[665.00,670.00,660.00,661.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8454 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());