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:[485.00,493.50,482.50,487.00]},{ x:'01/23/2024',y:[485.50,497.00,483.50,493.00]},{ x:'01/24/2024',y:[496.50,496.50,481.50,482.00]},{ x:'01/25/2024',y:[483.50,485.50,478.00,478.00]},{ x:'01/26/2024',y:[473.50,478.50,471.00,472.00]},{ x:'01/29/2024',y:[473.50,493.50,469.50,492.50]},{ x:'01/30/2024',y:[489.50,495.50,486.50,492.50]},{ x:'01/31/2024',y:[492.50,508.00,490.00,494.50]},{ x:'02/01/2024',y:[497.00,502.00,488.00,490.00]},{ x:'02/02/2024',y:[498.50,530.00,498.50,523.00]},{ x:'02/05/2024',y:[545.00,550.00,503.00,506.00]},{ x:'02/15/2024',y:[526.00,556.00,525.00,556.00]},{ x:'02/16/2024',y:[561.00,573.00,544.00,552.00]},{ x:'02/19/2024',y:[547.00,548.00,526.00,528.00]},{ x:'02/20/2024',y:[527.00,533.00,518.00,522.00]},{ x:'02/21/2024',y:[524.00,528.00,503.00,505.00]},{ x:'02/22/2024',y:[514.00,515.00,495.00,495.00]},{ x:'02/23/2024',y:[502.00,505.00,486.50,486.50]},{ x:'02/26/2024',y:[487.00,495.50,485.00,490.00]},{ x:'02/27/2024',y:[495.00,503.00,484.50,485.50]},{ x:'02/29/2024',y:[500.00,501.00,490.50,496.50]},{ x:'03/01/2024',y:[500.00,505.00,494.00,501.00]},{ x:'03/04/2024',y:[510.00,521.00,506.00,510.00]},{ x:'03/05/2024',y:[513.00,520.00,512.00,512.00]},{ x:'03/06/2024',y:[497.50,497.50,470.00,480.50]},{ x:'03/07/2024',y:[483.50,488.00,470.50,470.50]},{ x:'03/08/2024',y:[470.00,476.50,453.50,453.50]},{ x:'03/11/2024',y:[446.00,462.50,446.00,450.50]},{ x:'03/12/2024',y:[452.50,457.00,446.00,446.00]},{ x:'03/13/2024',y:[448.50,452.00,420.00,423.00]},{ x:'03/14/2024',y:[423.00,436.00,419.00,424.00]},{ x:'03/15/2024',y:[424.00,428.00,422.50,428.00]},{ x:'03/18/2024',y:[428.00,432.00,423.00,429.00]},{ x:'03/19/2024',y:[430.00,430.00,421.00,421.50]},{ x:'03/20/2024',y:[425.00,430.50,422.00,422.00]},{ x:'03/21/2024',y:[429.00,445.00,423.50,439.00]},{ x:'03/22/2024',y:[453.50,462.00,445.00,449.00]},{ x:'03/25/2024',y:[461.00,482.50,453.00,453.00]},{ x:'03/26/2024',y:[454.50,456.00,431.00,436.00]},{ x:'03/27/2024',y:[434.00,436.00,427.50,431.00]},{ x:'03/28/2024',y:[428.00,434.00,424.00,424.50]},{ x:'03/29/2024',y:[429.00,433.50,424.00,429.00]},{ x:'04/01/2024',y:[429.50,436.50,425.50,432.50]},{ x:'04/02/2024',y:[433.00,437.50,429.00,430.00]},{ x:'04/03/2024',y:[428.00,431.50,424.50,431.50]},{ x:'04/08/2024',y:[432.50,435.00,422.00,423.00]},{ x:'04/09/2024',y:[425.00,431.50,422.50,422.50]},{ x:'04/10/2024',y:[426.00,432.00,425.00,427.00]},{ x:'04/11/2024',y:[428.00,444.00,421.50,438.50]},{ x:'04/12/2024',y:[443.00,444.50,422.00,422.00]},{ x:'04/15/2024',y:[420.50,422.00,405.00,406.50]},{ x:'04/16/2024',y:[402.00,409.50,393.00,405.00]},{ x:'04/17/2024',y:[401.00,403.50,395.00,401.00]},{ x:'04/18/2024',y:[398.00,407.00,393.00,393.00]},{ x:'04/19/2024',y:[390.50,394.50,375.00,389.50]},{ x:'04/22/2024',y:[389.50,391.50,376.50,376.50]},{ x:'04/23/2024',y:[383.00,386.00,377.00,385.50]},{ x:'04/24/2024',y:[386.00,394.50,386.00,389.50]},{ x:'04/25/2024',y:[385.00,385.00,370.50,372.00]},{ x:'04/26/2024',y:[376.00,386.50,375.00,380.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6533 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());