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/30/2024',y:[475.50,480.00,470.00,473.50]},{ x:'05/02/2024',y:[467.50,472.50,467.50,471.00]},{ x:'05/03/2024',y:[476.00,486.00,473.00,473.00]},{ x:'05/06/2024',y:[473.00,475.50,467.00,468.00]},{ x:'05/07/2024',y:[468.00,475.00,466.50,467.00]},{ x:'05/08/2024',y:[465.50,467.50,462.50,464.00]},{ x:'05/09/2024',y:[464.00,464.00,453.00,453.00]},{ x:'05/10/2024',y:[455.00,464.00,454.00,462.50]},{ x:'05/13/2024',y:[467.00,467.00,461.00,463.50]},{ x:'05/14/2024',y:[465.50,465.50,457.00,457.00]},{ x:'05/15/2024',y:[459.00,461.50,451.50,451.50]},{ x:'05/16/2024',y:[452.00,456.00,452.00,453.50]},{ x:'05/17/2024',y:[452.50,453.50,451.00,452.00]},{ x:'05/20/2024',y:[451.00,455.00,445.00,450.00]},{ x:'05/21/2024',y:[450.00,450.00,445.50,446.00]},{ x:'05/22/2024',y:[446.50,459.50,446.50,455.00]},{ x:'05/23/2024',y:[454.50,455.50,449.00,449.00]},{ x:'05/24/2024',y:[449.00,454.00,446.00,451.00]},{ x:'06/11/2024',y:[464.00,471.00,464.00,467.00]},{ x:'06/12/2024',y:[473.00,473.00,465.00,465.00]},{ x:'06/13/2024',y:[470.00,470.00,464.00,466.00]},{ x:'06/14/2024',y:[466.00,470.00,463.00,467.00]},{ x:'06/17/2024',y:[466.00,471.00,466.00,470.50]},{ x:'06/18/2024',y:[474.50,489.00,472.00,485.00]},{ x:'06/19/2024',y:[490.50,490.50,477.00,477.50]},{ x:'06/20/2024',y:[480.00,486.50,480.00,484.00]},{ x:'06/21/2024',y:[485.00,485.00,482.00,482.00]},{ x:'06/24/2024',y:[481.50,481.50,473.00,473.00]},{ x:'06/25/2024',y:[470.00,473.00,465.00,467.50]},{ x:'06/26/2024',y:[469.00,469.00,463.50,463.50]},{ x:'06/27/2024',y:[463.50,467.00,454.00,454.00]},{ x:'06/28/2024',y:[459.50,463.50,455.00,457.00]},{ x:'07/01/2024',y:[459.00,459.00,452.00,454.00]},{ x:'07/02/2024',y:[461.50,461.50,446.00,446.50]},{ x:'07/03/2024',y:[449.00,449.00,442.00,442.50]},{ x:'07/04/2024',y:[452.50,483.00,449.00,475.00]},{ x:'07/05/2024',y:[482.00,483.00,471.50,478.00]},{ x:'07/12/2024',y:[480.00,480.00,471.00,472.00]},{ x:'07/15/2024',y:[473.00,478.00,467.50,470.50]},{ x:'07/16/2024',y:[474.50,479.50,470.50,470.50]},{ x:'07/17/2024',y:[471.00,476.00,469.00,472.50]},{ x:'07/18/2024',y:[467.00,476.50,467.00,476.50]},{ x:'07/19/2024',y:[475.00,475.00,463.50,463.50]},{ x:'07/22/2024',y:[466.50,466.50,430.50,437.00]},{ x:'07/23/2024',y:[442.00,446.50,435.00,440.50]},{ x:'07/26/2024',y:[429.50,439.50,429.50,432.00]},{ x:'07/29/2024',y:[435.50,438.00,415.50,418.00]},{ x:'07/30/2024',y:[409.50,425.50,405.00,415.50]},{ x:'07/31/2024',y:[422.00,448.00,422.00,430.50]},{ x:'08/01/2024',y:[440.00,463.00,440.00,458.50]},{ x:'08/02/2024',y:[443.00,458.00,434.50,436.00]},{ x:'08/05/2024',y:[427.00,427.00,397.00,403.50]},{ x:'08/06/2024',y:[418.00,418.00,375.00,401.00]},{ x:'08/07/2024',y:[401.00,421.00,401.00,417.50]},{ x:'08/08/2024',y:[406.00,439.00,406.00,434.00]},{ x:'08/09/2024',y:[442.00,444.00,430.00,437.00]},{ x:'08/12/2024',y:[437.00,440.50,432.00,436.00]},{ x:'08/13/2024',y:[440.50,443.50,432.00,443.00]},{ x:'08/14/2024',y:[452.00,474.50,451.50,464.50]},{ x:'08/15/2024',y:[467.00,487.50,458.50,484.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6510 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());