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:[375.50,377.00,372.00,373.00]},{ x:'01/23/2024',y:[373.50,376.50,371.50,376.00]},{ x:'01/24/2024',y:[376.50,377.00,373.00,373.50]},{ x:'01/25/2024',y:[376.50,376.50,368.00,371.50]},{ x:'01/26/2024',y:[372.50,373.50,368.50,373.00]},{ x:'01/29/2024',y:[373.50,377.50,373.00,377.00]},{ x:'01/30/2024',y:[383.50,398.00,382.00,394.50]},{ x:'01/31/2024',y:[391.00,395.00,389.00,389.00]},{ x:'02/01/2024',y:[388.50,388.50,381.00,381.00]},{ x:'02/02/2024',y:[382.00,385.00,381.50,382.50]},{ x:'02/05/2024',y:[382.50,386.50,382.00,384.00]},{ x:'02/15/2024',y:[385.00,387.50,380.50,382.00]},{ x:'02/16/2024',y:[382.00,387.50,382.00,385.00]},{ x:'02/19/2024',y:[386.00,394.50,386.00,389.50]},{ x:'02/20/2024',y:[389.00,394.00,388.50,391.00]},{ x:'02/21/2024',y:[391.00,401.50,389.00,401.00]},{ x:'02/22/2024',y:[398.00,403.50,397.00,398.50]},{ x:'02/23/2024',y:[403.50,413.50,396.50,396.50]},{ x:'02/26/2024',y:[400.00,407.50,398.00,401.50]},{ x:'02/27/2024',y:[402.00,413.50,402.00,402.50]},{ x:'02/29/2024',y:[404.00,408.00,399.50,399.50]},{ x:'03/01/2024',y:[400.00,402.00,396.00,396.50]},{ x:'03/04/2024',y:[402.00,408.50,401.50,403.50]},{ x:'03/05/2024',y:[405.00,410.00,402.50,406.50]},{ x:'03/06/2024',y:[409.00,409.00,402.50,406.50]},{ x:'03/07/2024',y:[408.50,413.50,404.50,410.50]},{ x:'03/08/2024',y:[411.00,412.50,401.00,401.00]},{ x:'03/11/2024',y:[402.00,405.00,395.50,398.00]},{ x:'03/12/2024',y:[400.00,402.50,396.00,400.00]},{ x:'03/13/2024',y:[400.00,412.00,400.00,409.50]},{ x:'03/14/2024',y:[411.00,445.00,411.00,444.00]},{ x:'03/15/2024',y:[450.00,451.50,430.00,434.00]},{ x:'03/18/2024',y:[434.50,446.00,429.00,446.00]},{ x:'03/19/2024',y:[445.00,466.00,443.00,453.50]},{ x:'03/20/2024',y:[460.50,465.00,454.50,458.00]},{ x:'03/21/2024',y:[468.00,468.00,451.00,455.00]},{ x:'03/22/2024',y:[455.00,465.00,448.00,455.50]},{ x:'03/25/2024',y:[455.00,471.50,455.00,462.50]},{ x:'03/26/2024',y:[464.00,465.00,448.50,449.00]},{ x:'03/27/2024',y:[449.50,456.50,444.50,454.00]},{ x:'03/28/2024',y:[455.00,464.00,454.00,454.00]},{ x:'03/29/2024',y:[456.00,456.00,444.50,454.00]},{ x:'04/01/2024',y:[462.00,494.50,462.00,479.00]},{ x:'04/02/2024',y:[479.00,494.00,474.50,485.50]},{ x:'04/03/2024',y:[484.50,489.50,481.00,482.00]},{ x:'04/08/2024',y:[487.50,498.00,480.00,486.00]},{ x:'04/09/2024',y:[487.00,488.50,476.50,478.00]},{ x:'04/10/2024',y:[481.00,490.00,474.00,486.00]},{ x:'04/11/2024',y:[483.50,495.00,477.00,490.00]},{ x:'04/12/2024',y:[488.00,503.00,481.00,483.00]},{ x:'04/15/2024',y:[482.00,484.50,469.00,475.50]},{ x:'04/16/2024',y:[471.00,474.50,453.00,458.50]},{ x:'04/17/2024',y:[461.00,472.00,458.00,466.00]},{ x:'04/18/2024',y:[463.00,465.00,455.50,464.50]},{ x:'04/19/2024',y:[463.00,467.50,447.50,455.00]},{ x:'04/22/2024',y:[451.50,459.50,446.50,458.00]},{ x:'04/23/2024',y:[461.00,484.50,461.00,482.50]},{ x:'04/24/2024',y:[482.50,490.00,480.00,487.50]},{ x:'04/25/2024',y:[494.00,530.00,488.50,520.00]},{ x:'04/26/2024',y:[524.00,524.00,509.00,514.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6491 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());