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:'11/24/2023',y:[381.50,383.50,376.00,383.50]},{ x:'11/27/2023',y:[383.50,384.00,373.00,377.00]},{ x:'11/28/2023',y:[379.00,385.50,377.50,385.50]},{ x:'11/29/2023',y:[387.00,390.50,383.50,390.00]},{ x:'11/30/2023',y:[388.00,393.50,382.00,393.50]},{ x:'12/01/2023',y:[390.00,391.50,386.50,388.00]},{ x:'12/04/2023',y:[391.50,391.50,385.50,387.00]},{ x:'12/05/2023',y:[388.00,391.00,382.50,390.50]},{ x:'12/06/2023',y:[390.50,395.00,388.50,393.50]},{ x:'12/07/2023',y:[391.00,397.00,390.50,393.50]},{ x:'12/08/2023',y:[398.00,403.50,395.50,398.50]},{ x:'12/11/2023',y:[400.00,402.00,392.00,396.50]},{ x:'12/12/2023',y:[396.00,399.00,392.00,393.00]},{ x:'12/18/2023',y:[409.00,434.00,403.50,428.50]},{ x:'12/19/2023',y:[427.00,436.00,422.00,424.50]},{ x:'01/10/2024',y:[455.00,464.00,451.50,461.00]},{ x:'01/11/2024',y:[462.00,463.00,455.00,461.00]},{ x:'01/12/2024',y:[459.00,459.00,445.00,448.50]},{ x:'01/15/2024',y:[452.00,455.00,446.00,447.00]},{ x:'01/16/2024',y:[445.50,445.50,439.00,440.50]},{ x:'01/17/2024',y:[441.00,444.50,436.50,439.00]},{ x:'01/18/2024',y:[439.00,452.50,439.00,445.00]},{ x:'01/19/2024',y:[448.00,455.00,445.50,455.00]},{ x:'01/22/2024',y:[456.00,465.00,455.00,459.50]},{ x:'01/23/2024',y:[460.00,462.50,454.50,456.50]},{ x:'01/24/2024',y:[457.00,461.50,454.00,455.00]},{ x:'01/25/2024',y:[457.00,460.50,454.50,458.00]},{ x:'01/26/2024',y:[453.00,453.50,436.50,439.00]},{ x:'01/29/2024',y:[436.00,445.00,436.00,444.00]},{ x:'01/30/2024',y:[443.50,451.00,439.50,447.50]},{ x:'01/31/2024',y:[446.00,453.00,441.00,445.50]},{ x:'02/01/2024',y:[447.00,448.00,442.00,447.00]},{ x:'02/02/2024',y:[451.00,458.00,450.00,455.00]},{ x:'02/05/2024',y:[450.50,455.00,448.50,452.00]},{ x:'02/15/2024',y:[464.00,467.00,457.00,464.00]},{ x:'02/16/2024',y:[462.50,488.00,462.00,479.50]},{ x:'02/19/2024',y:[482.50,482.50,467.50,477.50]},{ x:'02/20/2024',y:[475.50,479.00,470.00,473.00]},{ x:'02/21/2024',y:[476.00,487.00,466.00,469.00]},{ x:'02/22/2024',y:[473.00,477.00,462.50,469.00]},{ x:'02/23/2024',y:[473.00,482.50,473.00,474.00]},{ x:'02/26/2024',y:[472.00,473.50,464.50,470.50]},{ x:'02/27/2024',y:[461.50,462.00,452.00,454.50]},{ x:'02/29/2024',y:[450.00,462.50,448.00,455.00]},{ x:'03/01/2024',y:[457.00,466.00,456.00,457.00]},{ x:'03/04/2024',y:[460.50,467.00,457.00,457.00]},{ x:'03/05/2024',y:[458.00,470.00,458.00,466.00]},{ x:'03/06/2024',y:[465.00,471.50,462.50,471.00]},{ x:'03/07/2024',y:[470.00,471.00,461.00,462.00]},{ x:'03/08/2024',y:[461.50,461.50,451.00,452.50]},{ x:'03/11/2024',y:[453.00,457.00,439.50,444.00]},{ x:'03/12/2024',y:[442.50,446.00,437.00,441.00]},{ x:'03/13/2024',y:[441.00,444.50,436.00,436.00]},{ x:'03/14/2024',y:[435.00,436.50,428.00,433.50]},{ x:'03/15/2024',y:[428.00,434.50,428.00,429.00]},{ x:'03/18/2024',y:[429.00,433.50,401.00,408.50]},{ x:'03/19/2024',y:[406.50,415.00,405.00,407.50]},{ x:'03/20/2024',y:[409.00,419.50,409.00,414.00]},{ x:'03/21/2024',y:[414.50,422.00,411.50,420.00]},{ x:'03/22/2024',y:[424.00,436.50,420.50,421.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2357 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());