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/26/2024',y:[385.50,388.00,367.50,388.00]},{ x:'04/29/2024',y:[384.00,398.00,382.00,398.00]},{ x:'04/30/2024',y:[400.50,436.50,396.00,436.50]},{ x:'05/02/2024',y:[425.00,434.50,417.50,426.00]},{ x:'05/03/2024',y:[435.00,435.00,417.50,423.00]},{ x:'05/06/2024',y:[423.00,425.50,398.50,404.00]},{ x:'05/07/2024',y:[408.00,413.50,395.00,410.00]},{ x:'05/08/2024',y:[407.00,408.50,401.00,407.00]},{ x:'05/09/2024',y:[408.00,420.00,405.00,416.00]},{ x:'05/10/2024',y:[419.50,421.00,405.50,414.50]},{ x:'05/13/2024',y:[410.50,417.00,402.00,412.50]},{ x:'05/14/2024',y:[410.00,414.00,403.00,413.50]},{ x:'05/15/2024',y:[407.50,413.00,398.50,410.00]},{ x:'05/16/2024',y:[428.00,451.00,426.00,450.00]},{ x:'05/17/2024',y:[445.00,453.50,431.00,443.00]},{ x:'05/20/2024',y:[441.00,443.00,419.50,420.00]},{ x:'05/21/2024',y:[420.00,428.50,415.50,419.00]},{ x:'05/22/2024',y:[419.00,443.00,416.50,439.00]},{ x:'05/23/2024',y:[438.00,480.00,437.00,478.00]},{ x:'05/24/2024',y:[468.00,478.50,463.50,476.50]},{ x:'06/11/2024',y:[484.00,498.00,479.00,482.00]},{ x:'06/12/2024',y:[480.00,495.00,478.50,484.00]},{ x:'06/13/2024',y:[490.00,510.00,488.00,501.00]},{ x:'06/14/2024',y:[505.00,527.00,501.00,526.00]},{ x:'06/17/2024',y:[530.00,548.00,521.00,525.00]},{ x:'06/18/2024',y:[520.00,525.00,502.00,510.00]},{ x:'06/19/2024',y:[517.00,524.00,505.00,505.00]},{ x:'06/20/2024',y:[516.00,528.00,510.00,520.00]},{ x:'06/21/2024',y:[513.00,529.00,501.00,517.00]},{ x:'06/24/2024',y:[517.00,517.00,505.00,507.00]},{ x:'06/25/2024',y:[510.00,510.00,496.00,500.00]},{ x:'06/26/2024',y:[503.00,506.00,484.00,485.50]},{ x:'06/27/2024',y:[479.50,479.50,462.00,466.50]},{ x:'06/28/2024',y:[470.50,476.50,461.50,462.00]},{ x:'07/01/2024',y:[462.00,465.50,442.00,444.50]},{ x:'07/02/2024',y:[449.00,453.50,435.00,440.00]},{ x:'07/03/2024',y:[449.50,458.00,447.00,452.50]},{ x:'07/04/2024',y:[456.00,458.00,427.50,429.00]},{ x:'07/05/2024',y:[433.00,435.00,423.00,429.50]},{ x:'07/12/2024',y:[447.00,454.00,439.00,451.00]},{ x:'07/15/2024',y:[458.00,460.00,442.00,443.50]},{ x:'07/16/2024',y:[449.00,485.50,443.50,474.00]},{ x:'07/17/2024',y:[474.00,499.50,471.00,488.00]},{ x:'07/18/2024',y:[480.50,480.50,459.00,462.50]},{ x:'07/19/2024',y:[462.00,462.00,437.00,447.00]},{ x:'07/22/2024',y:[440.00,444.00,406.50,417.50]},{ x:'07/23/2024',y:[430.00,432.00,416.00,419.00]},{ x:'07/26/2024',y:[407.00,424.50,384.00,421.00]},{ x:'07/29/2024',y:[429.50,447.50,428.00,431.00]},{ x:'07/30/2024',y:[426.00,463.00,420.00,462.00]},{ x:'07/31/2024',y:[453.00,464.00,444.00,447.50]},{ x:'08/01/2024',y:[460.00,461.00,446.50,456.00]},{ x:'08/02/2024',y:[439.50,444.00,414.50,417.00]},{ x:'08/05/2024',y:[398.00,398.00,375.50,375.50]},{ x:'08/06/2024',y:[396.00,402.00,361.00,392.50]},{ x:'08/07/2024',y:[391.00,410.00,386.50,401.00]},{ x:'08/08/2024',y:[386.00,395.00,378.50,387.50]},{ x:'08/09/2024',y:[396.50,406.50,391.50,393.00]},{ x:'08/12/2024',y:[403.50,423.50,397.50,414.00]},{ x:'08/13/2024',y:[431.00,438.50,419.50,423.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6415 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());