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:'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]},{ x:'04/06/2023',y:[472.00,478.50,468.00,476.50]},{ x:'04/07/2023',y:[482.50,488.50,475.50,486.50]},{ x:'04/10/2023',y:[483.50,491.50,481.00,486.50]},{ x:'04/11/2023',y:[495.00,508.00,488.50,489.00]},{ x:'04/12/2023',y:[493.00,499.00,492.50,493.00]},{ x:'04/13/2023',y:[495.00,495.00,480.00,480.00]},{ x:'04/14/2023',y:[481.50,486.50,475.00,479.50]},{ x:'04/17/2023',y:[478.50,484.50,473.00,475.00]},{ x:'04/18/2023',y:[475.00,479.50,470.50,475.00]},{ x:'04/19/2023',y:[475.00,479.00,469.00,469.00]},{ x:'04/20/2023',y:[468.00,476.50,462.50,463.50]},{ x:'04/21/2023',y:[466.00,466.50,443.00,449.00]},{ x:'04/24/2023',y:[446.50,460.00,445.00,451.50]},{ x:'04/25/2023',y:[453.50,454.00,430.00,437.50]},{ x:'04/26/2023',y:[436.00,443.00,429.50,436.00]},{ x:'04/27/2023',y:[437.00,458.50,431.50,450.00]},{ x:'04/28/2023',y:[452.50,462.00,452.50,455.00]},{ x:'05/02/2023',y:[455.50,476.00,455.00,476.00]},{ x:'05/03/2023',y:[471.00,473.50,466.50,471.00]},{ x:'05/04/2023',y:[470.00,482.50,470.00,470.00]},{ x:'05/05/2023',y:[476.00,481.00,470.00,472.00]},{ x:'05/08/2023',y:[473.00,482.50,473.00,480.00]},{ x:'05/09/2023',y:[481.50,486.00,468.50,483.50]},{ x:'05/10/2023',y:[484.00,488.50,474.00,480.00]},{ x:'05/11/2023',y:[481.00,482.00,460.00,460.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());