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:[514.00,519.00,513.00,518.00]},{ x:'01/23/2024',y:[517.00,526.00,516.00,523.00]},{ x:'01/24/2024',y:[523.00,526.00,522.00,526.00]},{ x:'01/25/2024',y:[523.00,528.00,523.00,528.00]},{ x:'01/26/2024',y:[525.00,525.00,514.00,520.00]},{ x:'01/29/2024',y:[516.00,521.00,513.00,520.00]},{ x:'01/30/2024',y:[520.00,520.00,508.00,508.00]},{ x:'01/31/2024',y:[508.00,512.00,504.00,511.00]},{ x:'02/01/2024',y:[509.00,517.00,508.00,515.00]},{ x:'02/02/2024',y:[515.00,516.00,511.00,515.00]},{ x:'02/05/2024',y:[505.00,506.00,492.00,506.00]},{ x:'02/15/2024',y:[506.00,512.00,496.50,506.00]},{ x:'02/16/2024',y:[508.00,516.00,504.00,514.00]},{ x:'02/19/2024',y:[516.00,558.00,515.00,550.00]},{ x:'02/20/2024',y:[588.00,605.00,580.00,587.00]},{ x:'02/21/2024',y:[575.00,579.00,564.00,569.00]},{ x:'02/22/2024',y:[573.00,587.00,567.00,584.00]},{ x:'02/23/2024',y:[589.00,595.00,580.00,580.00]},{ x:'02/26/2024',y:[579.00,590.00,577.00,584.00]},{ x:'02/27/2024',y:[586.00,611.00,586.00,605.00]},{ x:'02/29/2024',y:[594.00,607.00,589.00,601.00]},{ x:'03/01/2024',y:[600.00,616.00,599.00,599.00]},{ x:'03/04/2024',y:[602.00,605.00,589.00,592.00]},{ x:'03/05/2024',y:[590.00,595.00,586.00,593.00]},{ x:'03/06/2024',y:[588.00,596.00,582.00,594.00]},{ x:'03/07/2024',y:[590.00,603.00,589.00,598.00]},{ x:'03/08/2024',y:[611.00,624.00,588.00,592.00]},{ x:'03/11/2024',y:[585.00,589.00,578.00,582.00]},{ x:'03/12/2024',y:[582.00,594.00,582.00,594.00]},{ x:'03/13/2024',y:[592.00,599.00,578.00,584.00]},{ x:'03/14/2024',y:[580.00,582.00,568.00,576.00]},{ x:'03/15/2024',y:[571.00,578.00,569.00,570.00]},{ x:'03/18/2024',y:[609.00,609.00,587.00,605.00]},{ x:'03/19/2024',y:[596.00,603.00,590.00,596.00]},{ x:'03/20/2024',y:[600.00,615.00,594.00,595.00]},{ x:'03/21/2024',y:[601.00,605.00,591.00,596.00]},{ x:'03/22/2024',y:[596.00,598.00,584.00,594.00]},{ x:'03/25/2024',y:[592.00,594.00,584.00,589.00]},{ x:'03/26/2024',y:[590.00,593.00,575.00,583.00]},{ x:'03/27/2024',y:[583.00,594.00,580.00,591.00]},{ x:'03/28/2024',y:[591.00,596.00,586.00,589.00]},{ x:'03/29/2024',y:[590.00,612.00,588.00,604.00]},{ x:'04/01/2024',y:[605.00,605.00,589.00,589.00]},{ x:'04/02/2024',y:[589.00,595.00,589.00,594.00]},{ x:'04/03/2024',y:[588.00,597.00,586.00,596.00]},{ x:'04/08/2024',y:[591.00,601.00,590.00,591.00]},{ x:'04/09/2024',y:[598.00,601.00,590.00,596.00]},{ x:'04/10/2024',y:[596.00,612.00,595.00,606.00]},{ x:'04/11/2024',y:[606.00,615.00,601.00,615.00]},{ x:'04/12/2024',y:[616.00,639.00,615.00,630.00]},{ x:'04/15/2024',y:[629.00,629.00,613.00,618.00]},{ x:'04/16/2024',y:[613.00,614.00,602.00,602.00]},{ x:'04/17/2024',y:[608.00,624.00,606.00,621.00]},{ x:'04/18/2024',y:[616.00,627.00,614.00,615.00]},{ x:'04/19/2024',y:[606.00,607.00,578.00,588.00]},{ x:'04/22/2024',y:[584.00,591.00,573.00,574.00]},{ x:'04/23/2024',y:[582.00,588.00,571.00,583.00]},{ x:'04/24/2024',y:[588.00,605.00,586.00,601.00]},{ x:'04/25/2024',y:[598.00,605.00,595.00,597.00]},{ x:'04/26/2024',y:[598.00,614.00,598.00,603.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3034 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());