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:[390.00,393.00,387.00,390.50]},{ x:'01/23/2024',y:[391.00,391.50,387.00,387.00]},{ x:'01/24/2024',y:[388.00,389.00,384.00,384.00]},{ x:'01/25/2024',y:[384.00,386.50,384.00,385.00]},{ x:'01/26/2024',y:[385.00,385.00,375.50,377.00]},{ x:'01/29/2024',y:[374.00,379.50,374.00,378.00]},{ x:'01/30/2024',y:[380.50,380.50,374.00,376.50]},{ x:'01/31/2024',y:[378.50,380.00,376.00,376.50]},{ x:'02/01/2024',y:[375.00,380.00,375.00,377.00]},{ x:'02/02/2024',y:[381.00,383.00,377.50,381.50]},{ x:'02/05/2024',y:[381.50,381.50,378.00,378.50]},{ x:'02/15/2024',y:[395.00,416.00,392.50,416.00]},{ x:'02/16/2024',y:[419.00,450.00,419.00,436.00]},{ x:'02/19/2024',y:[440.00,440.00,430.00,435.00]},{ x:'02/20/2024',y:[436.00,448.50,435.00,444.50]},{ x:'02/21/2024',y:[450.00,450.00,439.00,441.00]},{ x:'02/22/2024',y:[443.50,462.00,439.00,460.00]},{ x:'02/23/2024',y:[465.00,468.00,452.00,460.50]},{ x:'02/26/2024',y:[460.00,460.00,445.00,445.00]},{ x:'02/27/2024',y:[447.00,458.00,443.00,449.00]},{ x:'02/29/2024',y:[455.00,455.00,442.50,447.00]},{ x:'03/01/2024',y:[459.00,488.50,458.00,477.00]},{ x:'03/04/2024',y:[485.50,498.00,473.00,480.00]},{ x:'03/05/2024',y:[488.50,488.50,475.00,475.00]},{ x:'03/06/2024',y:[474.50,479.50,471.00,472.00]},{ x:'03/07/2024',y:[475.00,484.00,465.50,470.50]},{ x:'03/08/2024',y:[478.50,482.00,460.00,462.00]},{ x:'03/11/2024',y:[470.00,478.00,462.00,463.00]},{ x:'03/12/2024',y:[468.00,489.50,466.50,489.00]},{ x:'03/13/2024',y:[496.00,500.00,479.50,486.00]},{ x:'03/14/2024',y:[484.50,488.00,472.00,476.50]},{ x:'03/15/2024',y:[479.50,496.00,477.50,479.50]},{ x:'03/18/2024',y:[487.50,493.00,481.00,481.50]},{ x:'03/19/2024',y:[487.00,500.00,482.00,498.00]},{ x:'03/20/2024',y:[500.00,506.00,484.00,484.00]},{ x:'03/21/2024',y:[493.00,494.50,488.50,494.50]},{ x:'03/22/2024',y:[495.00,495.00,482.50,486.50]},{ x:'03/25/2024',y:[487.00,487.50,477.00,477.50]},{ x:'03/26/2024',y:[480.00,486.00,471.50,477.00]},{ x:'03/27/2024',y:[477.50,480.00,472.50,472.50]},{ x:'03/28/2024',y:[474.50,483.00,470.00,473.00]},{ x:'03/29/2024',y:[473.00,478.50,471.00,478.50]},{ x:'04/01/2024',y:[481.00,485.00,474.50,480.00]},{ x:'04/02/2024',y:[481.50,489.00,481.50,486.50]},{ x:'04/03/2024',y:[481.00,487.00,478.00,480.00]},{ x:'04/08/2024',y:[480.00,484.50,474.00,481.00]},{ x:'04/09/2024',y:[487.50,495.00,476.00,476.50]},{ x:'04/10/2024',y:[481.00,493.00,481.00,481.50]},{ x:'04/11/2024',y:[474.50,474.50,454.50,458.00]},{ x:'04/12/2024',y:[461.50,461.50,452.50,453.00]},{ x:'04/15/2024',y:[453.50,455.00,446.00,446.50]},{ x:'04/16/2024',y:[446.50,449.50,439.50,439.50]},{ x:'04/17/2024',y:[442.00,450.00,442.00,445.50]},{ x:'04/18/2024',y:[444.00,448.00,436.50,436.50]},{ x:'04/19/2024',y:[434.00,434.00,411.00,420.00]},{ x:'04/22/2024',y:[421.00,423.50,411.00,411.00]},{ x:'04/23/2024',y:[414.00,421.00,412.00,419.50]},{ x:'04/24/2024',y:[424.00,432.50,424.00,432.50]},{ x:'04/25/2024',y:[426.50,432.00,423.50,425.50]},{ x:'04/26/2024',y:[426.00,428.00,422.50,428.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3592 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());