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:[150.50,164.00,150.50,162.00]},{ x:'01/23/2024',y:[165.50,167.50,160.00,162.50]},{ x:'01/24/2024',y:[163.50,166.00,162.50,162.50]},{ x:'01/25/2024',y:[162.50,165.00,162.50,164.50]},{ x:'01/26/2024',y:[166.00,173.00,163.50,170.00]},{ x:'01/29/2024',y:[171.00,187.00,171.00,187.00]},{ x:'01/30/2024',y:[191.50,195.00,181.00,187.00]},{ x:'01/31/2024',y:[183.50,185.50,179.00,182.50]},{ x:'02/01/2024',y:[182.50,183.00,174.00,180.00]},{ x:'02/02/2024',y:[180.00,185.00,174.00,182.00]},{ x:'02/05/2024',y:[183.00,184.00,180.00,180.50]},{ x:'02/15/2024',y:[197.00,198.50,197.00,198.50]},{ x:'02/16/2024',y:[204.00,218.00,201.00,218.00]},{ x:'02/19/2024',y:[232.00,239.50,215.00,239.50]},{ x:'02/20/2024',y:[240.00,252.50,232.00,245.00]},{ x:'02/21/2024',y:[240.50,243.50,229.50,234.00]},{ x:'02/22/2024',y:[244.00,244.00,234.00,242.00]},{ x:'02/23/2024',y:[266.00,266.00,266.00,266.00]},{ x:'02/26/2024',y:[292.50,292.50,292.50,292.50]},{ x:'02/27/2024',y:[296.00,309.50,290.50,293.00]},{ x:'02/29/2024',y:[297.00,308.50,297.00,301.50]},{ x:'03/01/2024',y:[315.00,318.00,307.00,318.00]},{ x:'03/04/2024',y:[332.50,349.50,329.00,349.50]},{ x:'03/05/2024',y:[354.00,354.50,336.50,336.50]},{ x:'03/06/2024',y:[333.00,370.00,326.00,361.50]},{ x:'03/07/2024',y:[365.00,371.00,351.50,352.00]},{ x:'03/08/2024',y:[335.00,335.00,317.00,317.00]},{ x:'03/11/2024',y:[285.50,315.00,285.50,294.00]},{ x:'03/12/2024',y:[292.50,314.00,290.00,313.50]},{ x:'03/13/2024',y:[305.00,305.00,282.50,282.50]},{ x:'03/14/2024',y:[285.00,295.00,269.00,293.00]},{ x:'03/15/2024',y:[296.50,298.00,290.00,293.50]},{ x:'03/18/2024',y:[300.00,322.50,293.00,322.50]},{ x:'03/19/2024',y:[319.00,352.00,317.00,346.50]},{ x:'03/20/2024',y:[367.00,367.00,323.50,357.00]},{ x:'03/21/2024',y:[350.00,392.50,341.50,392.50]},{ x:'03/22/2024',y:[393.50,414.50,375.50,400.50]},{ x:'03/25/2024',y:[399.50,420.50,390.00,414.50]},{ x:'03/26/2024',y:[386.50,418.00,386.50,395.00]},{ x:'03/27/2024',y:[394.50,394.50,386.00,390.00]},{ x:'03/28/2024',y:[395.50,395.50,381.00,385.00]},{ x:'03/29/2024',y:[387.00,387.00,381.50,384.50]},{ x:'04/01/2024',y:[398.50,422.50,398.50,415.00]},{ x:'04/02/2024',y:[420.00,440.00,420.00,423.00]},{ x:'04/03/2024',y:[410.00,435.00,410.00,435.00]},{ x:'04/08/2024',y:[435.00,435.00,408.00,408.00]},{ x:'04/09/2024',y:[408.00,410.00,405.00,405.00]},{ x:'04/10/2024',y:[404.00,445.00,402.00,441.00]},{ x:'04/11/2024',y:[420.50,435.50,405.00,416.50]},{ x:'04/12/2024',y:[439.00,458.00,434.00,458.00]},{ x:'04/15/2024',y:[480.00,488.50,437.00,479.00]},{ x:'04/16/2024',y:[481.00,481.00,456.00,460.00]},{ x:'04/17/2024',y:[466.00,506.00,466.00,478.00]},{ x:'04/18/2024',y:[466.50,494.50,461.50,466.50]},{ x:'04/19/2024',y:[458.00,458.00,420.00,420.50]},{ x:'04/22/2024',y:[414.00,433.50,378.50,378.50]},{ x:'04/23/2024',y:[388.00,397.00,360.00,366.00]},{ x:'04/24/2024',y:[390.00,402.50,380.00,402.50]},{ x:'04/25/2024',y:[402.50,417.50,380.50,383.50]},{ x:'04/26/2024',y:[403.00,421.50,398.00,421.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6640 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());