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:'04/25/2024',y:[405.00,427.00,402.00,422.00]},{ x:'04/26/2024',y:[423.50,427.50,416.50,421.00]},{ x:'04/29/2024',y:[427.00,448.00,425.00,442.00]},{ x:'04/30/2024',y:[437.50,445.50,434.00,442.00]},{ x:'05/02/2024',y:[443.00,448.50,438.50,442.00]},{ x:'05/03/2024',y:[450.00,450.00,419.50,419.50]},{ x:'05/06/2024',y:[424.00,442.50,416.50,435.00]},{ x:'05/07/2024',y:[438.50,442.50,424.00,428.50]},{ x:'05/08/2024',y:[430.50,434.50,421.00,421.00]},{ x:'05/09/2024',y:[423.50,425.00,418.00,419.00]},{ x:'05/10/2024',y:[424.00,424.00,415.50,417.50]},{ x:'05/13/2024',y:[415.00,422.00,413.00,419.00]},{ x:'05/14/2024',y:[419.00,423.00,412.50,414.50]},{ x:'05/15/2024',y:[415.00,419.50,414.00,415.50]},{ x:'05/16/2024',y:[419.50,429.00,419.50,424.00]},{ x:'05/17/2024',y:[424.00,441.00,422.00,432.00]},{ x:'05/20/2024',y:[436.00,440.50,426.50,435.50]},{ x:'05/21/2024',y:[438.00,438.00,427.50,427.50]},{ x:'05/22/2024',y:[428.50,437.50,428.50,436.50]},{ x:'05/23/2024',y:[433.50,435.00,430.00,430.00]},{ x:'05/24/2024',y:[427.50,428.50,424.50,427.50]},{ x:'06/11/2024',y:[443.00,447.50,433.00,433.00]},{ x:'06/12/2024',y:[424.50,430.00,422.00,424.00]},{ x:'06/13/2024',y:[426.50,430.50,424.50,424.50]},{ x:'06/14/2024',y:[428.00,428.00,424.50,425.00]},{ x:'06/17/2024',y:[428.50,447.00,428.00,442.00]},{ x:'06/18/2024',y:[445.00,448.00,440.00,442.50]},{ x:'06/19/2024',y:[444.00,445.00,432.00,432.00]},{ x:'06/20/2024',y:[437.00,438.50,433.50,435.00]},{ x:'06/21/2024',y:[436.00,438.00,431.00,433.00]},{ x:'06/24/2024',y:[434.00,435.00,427.00,427.00]},{ x:'06/25/2024',y:[431.00,431.50,424.00,425.00]},{ x:'06/26/2024',y:[427.00,431.50,427.00,427.00]},{ x:'06/27/2024',y:[425.50,430.00,425.50,427.50]},{ x:'06/28/2024',y:[427.50,432.00,427.50,429.50]},{ x:'07/01/2024',y:[429.00,433.00,426.50,427.00]},{ x:'07/02/2024',y:[427.50,427.50,422.50,425.50]},{ x:'07/03/2024',y:[427.00,430.00,424.00,427.00]},{ x:'07/04/2024',y:[413.00,418.00,413.00,414.00]},{ x:'07/05/2024',y:[415.00,416.00,410.00,412.00]},{ x:'07/12/2024',y:[414.00,422.50,410.00,422.00]},{ x:'07/15/2024',y:[425.50,425.50,415.00,415.00]},{ x:'07/16/2024',y:[417.50,421.00,413.50,414.00]},{ x:'07/17/2024',y:[418.00,421.50,414.50,419.50]},{ x:'07/18/2024',y:[420.50,420.50,415.00,418.00]},{ x:'07/19/2024',y:[417.00,417.50,406.00,406.00]},{ x:'07/22/2024',y:[407.50,408.00,392.00,398.00]},{ x:'07/23/2024',y:[401.50,407.50,400.50,405.00]},{ x:'07/26/2024',y:[399.50,413.00,399.50,413.00]},{ x:'07/29/2024',y:[415.50,422.00,415.50,417.00]},{ x:'07/30/2024',y:[418.50,418.50,409.50,417.00]},{ x:'07/31/2024',y:[417.00,421.00,411.50,418.00]},{ x:'08/01/2024',y:[421.00,421.00,416.50,420.00]},{ x:'08/02/2024',y:[415.00,415.00,405.50,406.00]},{ x:'08/05/2024',y:[395.00,398.00,373.50,382.00]},{ x:'08/06/2024',y:[394.00,400.00,377.00,390.50]},{ x:'08/07/2024',y:[389.00,399.50,388.50,399.50]},{ x:'08/08/2024',y:[384.50,393.50,381.50,390.00]},{ x:'08/09/2024',y:[387.00,393.50,384.00,385.00]},{ x:'08/12/2024',y:[385.00,410.00,382.00,409.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8454 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());