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/23/2024',y:[337.00,337.00,328.50,330.00]},{ x:'01/24/2024',y:[333.00,335.00,330.50,331.00]},{ x:'01/25/2024',y:[335.00,339.00,332.50,335.50]},{ x:'01/26/2024',y:[336.00,338.00,332.50,334.50]},{ x:'01/29/2024',y:[334.50,334.50,329.00,331.00]},{ x:'01/30/2024',y:[332.00,332.00,328.50,330.00]},{ x:'01/31/2024',y:[330.00,331.00,327.00,327.00]},{ x:'02/01/2024',y:[328.00,328.00,326.00,328.00]},{ x:'02/02/2024',y:[329.50,331.00,310.00,312.00]},{ x:'02/05/2024',y:[315.00,319.00,312.50,317.00]},{ x:'02/15/2024',y:[321.50,324.00,318.00,320.50]},{ x:'02/16/2024',y:[326.00,347.00,325.50,342.50]},{ x:'02/19/2024',y:[343.50,347.00,333.00,341.00]},{ x:'02/20/2024',y:[349.00,353.00,334.50,334.50]},{ x:'02/21/2024',y:[334.50,339.00,331.50,335.50]},{ x:'02/22/2024',y:[339.00,351.50,337.00,350.00]},{ x:'02/23/2024',y:[351.50,385.00,346.00,378.00]},{ x:'02/26/2024',y:[387.50,415.50,387.00,411.00]},{ x:'02/27/2024',y:[407.50,414.50,399.50,408.50]},{ x:'02/29/2024',y:[409.00,410.50,392.00,406.00]},{ x:'03/01/2024',y:[404.00,406.50,390.00,391.00]},{ x:'03/04/2024',y:[395.00,429.50,395.00,418.50]},{ x:'03/05/2024',y:[421.00,423.00,407.00,412.50]},{ x:'03/06/2024',y:[408.00,410.00,400.00,407.00]},{ x:'03/07/2024',y:[412.50,426.00,400.50,401.00]},{ x:'03/08/2024',y:[405.50,405.50,375.00,381.50]},{ x:'03/11/2024',y:[373.00,387.50,368.00,381.00]},{ x:'03/12/2024',y:[385.00,392.50,378.50,387.00]},{ x:'03/13/2024',y:[391.50,393.00,378.00,386.50]},{ x:'03/14/2024',y:[384.00,389.00,375.50,382.50]},{ x:'03/15/2024',y:[379.00,398.00,379.00,385.00]},{ x:'03/18/2024',y:[393.00,407.00,390.00,405.00]},{ x:'03/19/2024',y:[403.50,409.50,398.00,402.00]},{ x:'03/20/2024',y:[404.50,405.50,398.00,400.00]},{ x:'03/21/2024',y:[407.50,432.00,406.00,425.00]},{ x:'03/22/2024',y:[429.00,429.50,405.00,415.00]},{ x:'03/25/2024',y:[416.00,438.00,415.50,421.50]},{ x:'03/26/2024',y:[428.50,429.00,413.00,420.00]},{ x:'03/27/2024',y:[425.00,458.00,420.50,451.00]},{ x:'03/28/2024',y:[440.00,449.00,432.50,432.50]},{ x:'03/29/2024',y:[432.50,436.50,418.50,421.00]},{ x:'04/01/2024',y:[421.00,431.00,416.00,425.00]},{ x:'04/02/2024',y:[426.00,433.50,421.00,423.00]},{ x:'04/03/2024',y:[422.00,423.50,417.50,421.00]},{ x:'04/08/2024',y:[424.50,424.50,413.00,420.00]},{ x:'04/09/2024',y:[425.00,449.50,421.50,421.50]},{ x:'04/10/2024',y:[425.00,437.50,424.00,431.00]},{ x:'04/11/2024',y:[432.00,446.00,426.00,428.00]},{ x:'04/12/2024',y:[432.00,448.00,428.00,442.00]},{ x:'04/15/2024',y:[440.00,466.00,438.00,458.50]},{ x:'04/16/2024',y:[456.50,456.50,423.50,443.50]},{ x:'04/17/2024',y:[447.50,462.00,443.00,455.00]},{ x:'04/18/2024',y:[451.00,451.50,434.00,436.00]},{ x:'04/19/2024',y:[420.00,421.00,400.00,419.00]},{ x:'04/22/2024',y:[418.00,423.00,402.00,402.00]},{ x:'04/23/2024',y:[412.50,413.00,405.00,409.00]},{ x:'04/24/2024',y:[419.00,426.50,413.00,418.00]},{ x:'04/25/2024',y:[414.00,417.50,410.50,410.50]},{ x:'04/26/2024',y:[415.00,419.50,404.50,407.50]},{ x:'04/29/2024',y:[411.50,422.00,411.50,418.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4770 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());