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:'12/23/2022',y:[369.50,370.00,357.00,369.50]},{ x:'12/26/2022',y:[365.00,367.50,359.00,365.50]},{ x:'12/27/2022',y:[365.50,389.00,365.50,386.50]},{ x:'12/28/2022',y:[382.00,393.00,377.00,381.50]},{ x:'12/29/2022',y:[377.00,388.00,369.00,382.00]},{ x:'12/30/2022',y:[388.00,394.00,376.50,376.50]},{ x:'01/03/2023',y:[380.00,385.00,376.00,376.50]},{ x:'01/04/2023',y:[375.50,380.50,373.50,374.00]},{ x:'01/05/2023',y:[378.00,380.00,365.00,366.00]},{ x:'01/06/2023',y:[363.00,369.00,360.50,366.50]},{ x:'01/09/2023',y:[374.00,388.00,372.00,387.50]},{ x:'01/10/2023',y:[387.00,392.00,382.50,383.50]},{ x:'01/11/2023',y:[385.00,388.00,378.50,381.00]},{ x:'01/12/2023',y:[387.00,387.00,377.00,377.00]},{ x:'01/13/2023',y:[381.00,387.00,379.50,380.00]},{ x:'01/16/2023',y:[380.00,387.00,379.00,385.50]},{ x:'01/17/2023',y:[385.50,388.00,383.00,386.50]},{ x:'01/30/2023',y:[393.00,399.00,377.00,381.50]},{ x:'01/31/2023',y:[381.50,383.50,372.50,375.00]},{ x:'02/01/2023',y:[379.00,389.50,378.50,383.50]},{ x:'02/02/2023',y:[390.00,412.50,388.00,407.50]},{ x:'02/03/2023',y:[407.50,417.00,405.00,409.50]},{ x:'02/06/2023',y:[407.50,413.00,403.50,410.50]},{ x:'02/07/2023',y:[413.00,419.00,410.00,410.50]},{ x:'02/08/2023',y:[411.00,412.50,401.00,401.50]},{ x:'02/09/2023',y:[402.00,404.00,396.50,398.50]},{ x:'02/10/2023',y:[402.00,403.00,392.50,393.50]},{ x:'02/13/2023',y:[392.50,408.00,391.50,406.50]},{ x:'02/14/2023',y:[406.50,416.50,404.00,413.00]},{ x:'02/15/2023',y:[408.00,413.00,372.50,377.50]},{ x:'02/16/2023',y:[380.00,388.00,369.00,385.50]},{ x:'02/17/2023',y:[379.00,394.00,378.00,393.00]},{ x:'02/20/2023',y:[390.00,401.00,388.50,397.50]},{ x:'02/21/2023',y:[398.00,404.00,394.00,397.50]},{ x:'02/22/2023',y:[392.50,401.00,390.00,398.00]},{ x:'02/23/2023',y:[400.00,403.50,398.00,401.50]},{ x:'02/24/2023',y:[407.50,434.50,406.00,425.00]},{ x:'03/01/2023',y:[427.00,429.50,403.00,405.00]},{ x:'03/02/2023',y:[406.00,411.00,399.00,402.50]},{ x:'03/03/2023',y:[405.00,408.00,402.00,402.00]},{ x:'03/06/2023',y:[405.00,413.50,401.00,407.00]},{ x:'03/07/2023',y:[408.50,410.00,398.00,404.00]},{ x:'03/08/2023',y:[404.00,406.50,400.50,406.00]},{ x:'03/09/2023',y:[406.00,413.00,404.50,409.00]},{ x:'03/10/2023',y:[406.00,408.00,397.50,399.00]},{ x:'03/13/2023',y:[398.00,402.50,387.00,402.50]},{ x:'03/14/2023',y:[398.50,402.00,393.50,398.50]},{ x:'03/15/2023',y:[404.00,411.50,400.00,400.50]},{ x:'03/16/2023',y:[397.50,406.50,396.50,400.50]},{ x:'03/17/2023',y:[407.00,425.50,404.00,404.00]},{ x:'03/20/2023',y:[410.00,419.00,405.50,407.00]},{ x:'03/21/2023',y:[412.00,415.50,404.00,408.00]},{ x:'03/22/2023',y:[415.00,429.50,414.00,417.50]},{ x:'03/23/2023',y:[420.00,448.50,415.50,439.50]},{ x:'03/24/2023',y:[441.00,452.50,432.50,451.00]},{ x:'03/27/2023',y:[449.00,496.00,445.50,488.00]},{ x:'03/28/2023',y:[491.00,499.50,468.00,474.00]},{ x:'03/29/2023',y:[481.50,484.50,468.00,469.50]},{ x:'03/30/2023',y:[474.50,490.50,471.50,479.50]},{ x:'03/31/2023',y:[480.50,487.50,473.50,476.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3653 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());