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/29/2024',y:[420.50,426.50,420.50,426.00]},{ x:'04/30/2024',y:[425.00,434.50,425.00,430.00]},{ x:'05/02/2024',y:[427.00,432.00,426.50,427.50]},{ x:'05/03/2024',y:[431.50,435.00,428.50,429.00]},{ x:'05/06/2024',y:[433.50,451.50,433.00,448.50]},{ x:'05/07/2024',y:[452.50,466.00,451.50,460.00]},{ x:'05/08/2024',y:[456.00,461.50,452.50,458.50]},{ x:'05/09/2024',y:[460.50,483.00,460.00,475.00]},{ x:'05/10/2024',y:[473.00,474.50,464.00,470.50]},{ x:'05/13/2024',y:[473.00,476.00,459.00,466.00]},{ x:'05/14/2024',y:[510.00,512.00,495.50,512.00]},{ x:'05/15/2024',y:[513.00,517.00,495.50,498.00]},{ x:'05/16/2024',y:[505.00,520.00,500.00,516.00]},{ x:'05/17/2024',y:[510.00,516.00,502.00,516.00]},{ x:'05/20/2024',y:[518.00,521.00,501.00,506.00]},{ x:'05/21/2024',y:[503.00,505.00,483.00,489.00]},{ x:'05/22/2024',y:[499.50,535.00,493.00,522.00]},{ x:'05/23/2024',y:[531.00,531.00,512.00,520.00]},{ x:'05/24/2024',y:[508.00,524.00,503.00,519.00]},{ x:'06/11/2024',y:[484.00,486.00,478.00,481.50]},{ x:'06/12/2024',y:[480.00,484.50,477.00,480.50]},{ x:'06/13/2024',y:[480.50,491.50,478.00,487.00]},{ x:'06/14/2024',y:[495.00,496.00,490.00,493.50]},{ x:'06/17/2024',y:[493.50,495.00,489.00,489.00]},{ x:'06/18/2024',y:[492.00,497.50,490.50,496.00]},{ x:'06/19/2024',y:[498.00,508.00,495.50,502.00]},{ x:'06/20/2024',y:[505.00,516.00,504.00,512.00]},{ x:'06/21/2024',y:[507.00,518.00,505.00,512.00]},{ x:'06/24/2024',y:[514.00,518.00,508.00,513.00]},{ x:'06/25/2024',y:[510.00,511.00,500.00,506.00]},{ x:'06/26/2024',y:[503.00,512.00,501.00,506.00]},{ x:'06/27/2024',y:[501.00,506.00,496.00,503.00]},{ x:'06/28/2024',y:[501.00,504.00,498.00,498.00]},{ x:'07/01/2024',y:[502.00,502.00,494.50,495.50]},{ x:'07/02/2024',y:[492.00,493.50,486.00,490.00]},{ x:'07/03/2024',y:[470.00,480.50,465.00,479.50]},{ x:'07/04/2024',y:[482.00,492.50,481.00,482.00]},{ x:'07/05/2024',y:[484.00,486.00,482.50,483.00]},{ x:'07/12/2024',y:[517.00,517.00,507.00,509.00]},{ x:'07/15/2024',y:[513.00,514.00,495.00,498.50]},{ x:'07/16/2024',y:[496.00,502.00,492.50,502.00]},{ x:'07/17/2024',y:[500.00,502.00,491.50,493.50]},{ x:'07/18/2024',y:[489.00,496.50,486.00,494.50]},{ x:'07/19/2024',y:[493.50,494.50,481.00,481.50]},{ x:'07/22/2024',y:[480.00,480.50,459.50,468.00]},{ x:'07/23/2024',y:[472.00,479.00,472.00,478.50]},{ x:'07/26/2024',y:[471.00,472.00,447.50,458.00]},{ x:'07/29/2024',y:[461.50,461.50,443.00,444.50]},{ x:'07/30/2024',y:[444.00,447.00,433.00,447.00]},{ x:'07/31/2024',y:[445.00,457.00,443.00,456.00]},{ x:'08/01/2024',y:[470.00,492.00,469.00,492.00]},{ x:'08/02/2024',y:[478.50,487.00,468.00,472.00]},{ x:'08/05/2024',y:[450.00,452.50,426.00,433.00]},{ x:'08/06/2024',y:[454.50,454.50,422.00,435.50]},{ x:'08/07/2024',y:[433.50,473.50,433.00,469.50]},{ x:'08/08/2024',y:[509.00,513.00,494.50,502.00]},{ x:'08/09/2024',y:[509.00,511.00,497.00,505.00]},{ x:'08/12/2024',y:[507.00,512.00,496.50,499.00]},{ x:'08/13/2024',y:[501.00,509.00,496.00,500.00]},{ x:'08/14/2024',y:[506.00,511.00,500.00,510.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2357 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());