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:[209.00,216.00,209.00,211.00]},{ x:'01/23/2024',y:[211.50,215.50,210.50,215.00]},{ x:'01/24/2024',y:[215.50,216.50,212.00,213.00]},{ x:'01/25/2024',y:[214.00,220.00,214.00,217.50]},{ x:'01/26/2024',y:[217.50,217.50,213.00,213.50]},{ x:'01/29/2024',y:[213.50,215.50,211.50,214.00]},{ x:'01/30/2024',y:[214.00,219.00,214.00,217.50]},{ x:'01/31/2024',y:[217.50,217.50,214.50,216.00]},{ x:'02/01/2024',y:[216.00,216.50,212.00,212.50]},{ x:'02/02/2024',y:[213.00,215.00,211.50,212.50]},{ x:'02/05/2024',y:[212.50,213.00,211.50,212.50]},{ x:'02/15/2024',y:[214.00,222.00,214.00,221.00]},{ x:'02/16/2024',y:[229.50,241.50,226.50,233.50]},{ x:'02/19/2024',y:[234.00,235.00,228.00,231.00]},{ x:'02/20/2024',y:[231.50,237.00,230.00,231.00]},{ x:'02/21/2024',y:[229.00,230.50,228.00,230.00]},{ x:'02/22/2024',y:[231.50,247.50,231.50,245.00]},{ x:'02/23/2024',y:[247.50,254.50,244.50,250.00]},{ x:'02/26/2024',y:[252.50,259.50,246.00,248.50]},{ x:'02/27/2024',y:[248.50,249.50,241.50,244.00]},{ x:'02/29/2024',y:[243.00,244.50,239.00,240.00]},{ x:'03/01/2024',y:[243.00,252.50,243.00,247.50]},{ x:'03/04/2024',y:[249.00,257.50,246.50,257.00]},{ x:'03/05/2024',y:[254.50,255.50,248.00,252.50]},{ x:'03/06/2024',y:[251.00,257.50,250.00,255.00]},{ x:'03/07/2024',y:[258.00,265.00,253.00,253.50]},{ x:'03/08/2024',y:[256.00,258.50,243.50,248.00]},{ x:'03/11/2024',y:[252.00,253.00,243.50,244.00]},{ x:'03/12/2024',y:[244.00,249.00,244.00,248.50]},{ x:'03/13/2024',y:[253.00,256.00,244.00,246.50]},{ x:'03/14/2024',y:[253.50,264.00,246.50,263.00]},{ x:'03/15/2024',y:[262.00,275.50,261.00,270.00]},{ x:'03/18/2024',y:[273.50,274.50,267.00,273.50]},{ x:'03/19/2024',y:[274.00,293.00,272.00,291.50]},{ x:'03/20/2024',y:[293.00,296.00,286.50,290.00]},{ x:'03/21/2024',y:[293.00,303.00,289.50,294.00]},{ x:'03/22/2024',y:[296.50,298.50,290.00,297.50]},{ x:'03/25/2024',y:[299.00,302.50,294.50,297.50]},{ x:'03/26/2024',y:[305.00,320.50,295.00,299.50]},{ x:'03/27/2024',y:[300.50,313.50,300.50,307.50]},{ x:'03/28/2024',y:[306.50,307.50,299.50,299.50]},{ x:'03/29/2024',y:[303.00,303.00,292.50,297.00]},{ x:'04/01/2024',y:[299.00,309.00,298.50,304.00]},{ x:'04/02/2024',y:[306.50,319.00,304.50,314.00]},{ x:'04/03/2024',y:[310.00,315.00,305.50,308.00]},{ x:'04/08/2024',y:[309.00,310.50,304.50,309.50]},{ x:'04/09/2024',y:[309.50,310.00,296.00,297.00]},{ x:'04/10/2024',y:[299.00,303.50,297.00,298.50]},{ x:'04/11/2024',y:[296.50,298.50,292.00,296.00]},{ x:'04/12/2024',y:[299.00,314.00,299.00,307.50]},{ x:'04/15/2024',y:[303.50,313.50,299.00,305.00]},{ x:'04/16/2024',y:[300.50,301.50,292.00,295.50]},{ x:'04/17/2024',y:[299.50,311.50,299.50,308.50]},{ x:'04/18/2024',y:[304.50,305.00,288.50,294.00]},{ x:'04/19/2024',y:[284.00,291.00,278.00,288.00]},{ x:'04/22/2024',y:[283.50,288.00,276.00,279.00]},{ x:'04/23/2024',y:[283.50,286.00,280.50,284.00]},{ x:'04/24/2024',y:[289.00,295.00,287.50,292.00]},{ x:'04/25/2024',y:[289.00,291.00,287.00,288.00]},{ x:'04/26/2024',y:[292.50,293.50,288.50,290.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3413 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());