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:[383.00,392.00,379.50,387.00]},{ x:'01/23/2024',y:[386.00,415.00,383.50,398.00]},{ x:'01/24/2024',y:[405.50,407.00,393.00,399.00]},{ x:'01/25/2024',y:[406.50,410.00,392.00,392.50]},{ x:'01/26/2024',y:[391.00,393.00,385.00,386.50]},{ x:'01/29/2024',y:[387.00,398.00,381.50,395.50]},{ x:'01/30/2024',y:[398.00,404.00,391.00,402.00]},{ x:'01/31/2024',y:[402.50,410.00,399.00,402.00]},{ x:'02/01/2024',y:[401.50,412.50,396.50,405.00]},{ x:'02/02/2024',y:[406.50,409.00,403.50,405.00]},{ x:'02/05/2024',y:[405.50,418.00,400.00,411.00]},{ x:'02/15/2024',y:[425.00,450.00,424.50,446.00]},{ x:'02/16/2024',y:[452.00,452.00,432.00,433.00]},{ x:'02/19/2024',y:[433.00,440.00,426.50,427.00]},{ x:'02/20/2024',y:[427.50,435.50,419.00,420.00]},{ x:'02/21/2024',y:[420.00,428.50,414.00,421.00]},{ x:'02/22/2024',y:[428.50,435.00,423.00,429.00]},{ x:'02/23/2024',y:[435.00,471.50,433.50,470.00]},{ x:'02/26/2024',y:[473.50,473.50,455.00,459.00]},{ x:'02/27/2024',y:[466.00,468.00,436.50,448.50]},{ x:'02/29/2024',y:[447.50,450.00,439.50,450.00]},{ x:'03/01/2024',y:[450.00,462.50,446.00,451.50]},{ x:'03/04/2024',y:[465.00,473.00,455.50,457.00]},{ x:'03/05/2024',y:[457.00,458.00,447.00,452.50]},{ x:'03/06/2024',y:[449.00,457.00,448.50,454.00]},{ x:'03/07/2024',y:[458.00,467.50,441.00,444.00]},{ x:'03/08/2024',y:[450.00,452.00,423.00,423.00]},{ x:'03/11/2024',y:[423.00,426.00,415.00,417.50]},{ x:'03/12/2024',y:[418.00,421.00,415.00,416.50]},{ x:'03/13/2024',y:[421.50,422.00,401.00,404.00]},{ x:'03/14/2024',y:[414.00,419.00,400.00,414.00]},{ x:'03/15/2024',y:[415.50,427.00,409.00,409.00]},{ x:'03/18/2024',y:[412.50,426.00,404.00,425.00]},{ x:'03/19/2024',y:[426.50,462.00,425.50,444.00]},{ x:'03/20/2024',y:[441.00,448.00,427.00,427.00]},{ x:'03/21/2024',y:[433.00,434.00,425.00,425.00]},{ x:'03/22/2024',y:[426.00,428.00,413.50,417.50]},{ x:'03/25/2024',y:[419.00,439.50,419.00,430.50]},{ x:'03/26/2024',y:[431.50,438.50,422.00,423.00]},{ x:'03/27/2024',y:[426.00,427.50,421.50,426.00]},{ x:'03/28/2024',y:[426.00,445.00,424.50,432.50]},{ x:'03/29/2024',y:[445.00,454.00,428.50,434.00]},{ x:'04/01/2024',y:[435.00,458.00,434.50,458.00]},{ x:'04/02/2024',y:[463.50,480.00,454.00,475.50]},{ x:'04/03/2024',y:[471.00,477.50,466.00,474.00]},{ x:'04/08/2024',y:[477.50,477.50,464.00,469.00]},{ x:'04/09/2024',y:[474.00,488.00,467.50,468.00]},{ x:'04/10/2024',y:[464.00,464.00,446.00,451.00]},{ x:'04/11/2024',y:[450.00,470.50,447.00,470.50]},{ x:'04/12/2024',y:[477.50,489.50,471.00,479.00]},{ x:'04/15/2024',y:[474.50,479.00,464.00,469.50]},{ x:'04/16/2024',y:[461.00,461.50,448.00,459.50]},{ x:'04/17/2024',y:[458.00,492.00,458.00,482.00]},{ x:'04/18/2024',y:[468.50,474.50,458.00,464.00]},{ x:'04/19/2024',y:[448.00,451.50,418.00,419.50]},{ x:'04/22/2024',y:[412.00,423.00,404.50,404.50]},{ x:'04/23/2024',y:[415.00,416.00,403.50,410.00]},{ x:'04/24/2024',y:[419.00,442.00,419.00,442.00]},{ x:'04/25/2024',y:[437.50,441.00,420.00,420.00]},{ x:'04/26/2024',y:[432.00,435.50,422.00,424.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3680 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());