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:[384.50,398.00,373.00,394.50]},{ x:'01/23/2024',y:[398.00,398.00,389.00,394.50]},{ x:'01/24/2024',y:[395.00,398.00,390.00,390.00]},{ x:'01/25/2024',y:[395.00,395.00,390.50,391.00]},{ x:'01/26/2024',y:[392.00,421.00,392.00,419.50]},{ x:'01/29/2024',y:[430.00,445.00,428.50,445.00]},{ x:'01/30/2024',y:[450.00,458.00,436.00,448.50]},{ x:'01/31/2024',y:[448.00,463.00,440.00,454.50]},{ x:'02/01/2024',y:[453.00,455.00,438.00,438.00]},{ x:'02/02/2024',y:[440.00,481.00,440.00,480.00]},{ x:'02/05/2024',y:[480.00,498.50,460.00,482.50]},{ x:'02/15/2024',y:[496.00,526.00,478.00,519.00]},{ x:'02/16/2024',y:[512.00,541.00,509.00,534.00]},{ x:'02/19/2024',y:[536.00,542.00,518.00,527.00]},{ x:'02/20/2024',y:[525.00,532.00,505.00,505.00]},{ x:'02/21/2024',y:[500.00,509.00,454.50,454.50]},{ x:'02/22/2024',y:[452.00,495.00,441.50,494.00]},{ x:'02/23/2024',y:[499.00,500.00,473.50,475.00]},{ x:'02/26/2024',y:[478.00,493.00,466.00,483.50]},{ x:'02/27/2024',y:[488.00,493.00,467.50,483.00]},{ x:'02/29/2024',y:[485.00,503.00,479.00,503.00]},{ x:'03/01/2024',y:[509.00,510.00,488.00,504.00]},{ x:'03/04/2024',y:[480.00,493.50,475.00,477.50]},{ x:'03/05/2024',y:[480.50,515.00,466.00,511.00]},{ x:'03/06/2024',y:[505.00,515.00,497.50,500.00]},{ x:'03/07/2024',y:[523.00,545.00,515.00,521.00]},{ x:'03/08/2024',y:[534.00,535.00,480.50,495.00]},{ x:'03/11/2024',y:[494.50,519.00,493.00,504.00]},{ x:'03/12/2024',y:[504.00,518.00,495.00,495.50]},{ x:'03/13/2024',y:[499.00,503.00,450.00,466.50]},{ x:'03/14/2024',y:[460.00,484.00,442.50,455.00]},{ x:'03/15/2024',y:[455.00,465.00,418.50,438.50]},{ x:'03/18/2024',y:[438.50,467.00,430.50,455.00]},{ x:'03/19/2024',y:[460.00,460.00,435.00,444.50]},{ x:'03/20/2024',y:[450.00,457.50,446.00,449.00]},{ x:'03/21/2024',y:[452.00,486.00,449.00,485.00]},{ x:'03/22/2024',y:[486.00,492.00,476.00,479.00]},{ x:'03/25/2024',y:[526.00,526.00,510.00,526.00]},{ x:'03/26/2024',y:[519.00,561.00,514.00,560.00]},{ x:'03/27/2024',y:[554.00,577.00,551.00,555.00]},{ x:'03/28/2024',y:[558.00,558.00,535.00,535.00]},{ x:'03/29/2024',y:[537.00,556.00,535.00,546.00]},{ x:'04/01/2024',y:[544.00,566.00,544.00,560.00]},{ x:'04/02/2024',y:[516.00,540.00,516.00,516.00]},{ x:'04/03/2024',y:[520.00,524.00,498.50,503.00]},{ x:'04/08/2024',y:[503.00,508.00,480.50,490.50]},{ x:'04/09/2024',y:[492.50,503.00,472.00,495.00]},{ x:'04/10/2024',y:[504.00,517.00,503.00,511.00]},{ x:'04/11/2024',y:[510.00,520.00,500.00,502.00]},{ x:'04/12/2024',y:[507.00,512.00,500.00,501.00]},{ x:'04/15/2024',y:[501.00,512.00,484.00,484.00]},{ x:'04/16/2024',y:[480.00,494.00,460.00,477.00]},{ x:'04/17/2024',y:[484.00,488.50,475.00,478.50]},{ x:'04/18/2024',y:[473.00,481.50,465.00,465.00]},{ x:'04/19/2024',y:[458.00,462.00,418.50,419.00]},{ x:'04/22/2024',y:[419.00,422.50,377.50,377.50]},{ x:'04/23/2024',y:[380.00,380.00,340.00,340.00]},{ x:'04/24/2024',y:[306.50,306.50,306.00,306.00]},{ x:'04/25/2024',y:[275.50,335.50,275.50,335.50]},{ x:'04/26/2024',y:[318.00,346.00,318.00,318.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3228 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());