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:'08/24/2023',y:[543.00,555.00,528.00,543.00]},{ x:'08/25/2023',y:[537.00,564.00,530.00,530.00]},{ x:'08/28/2023',y:[534.00,546.00,526.00,527.00]},{ x:'08/29/2023',y:[530.00,544.00,520.00,544.00]},{ x:'08/30/2023',y:[554.00,565.00,545.00,555.00]},{ x:'08/31/2023',y:[547.00,557.00,528.00,532.00]},{ x:'09/01/2023',y:[531.00,540.00,528.00,534.00]},{ x:'09/04/2023',y:[538.00,538.00,528.00,530.00]},{ x:'09/05/2023',y:[528.00,534.00,526.00,526.00]},{ x:'09/06/2023',y:[531.00,532.00,511.00,515.00]},{ x:'09/07/2023',y:[518.00,522.00,512.00,516.00]},{ x:'09/08/2023',y:[513.00,526.00,511.00,520.00]},{ x:'09/11/2023',y:[514.00,514.00,485.50,485.50]},{ x:'09/12/2023',y:[487.00,490.50,475.00,480.00]},{ x:'09/13/2023',y:[488.00,495.00,479.00,489.50]},{ x:'09/14/2023',y:[492.00,510.00,492.00,510.00]},{ x:'09/15/2023',y:[510.00,515.00,501.00,506.00]},{ x:'09/18/2023',y:[503.00,503.00,485.00,486.00]},{ x:'09/19/2023',y:[486.50,489.50,480.00,485.00]},{ x:'09/20/2023',y:[489.00,502.00,483.50,486.00]},{ x:'09/21/2023',y:[486.00,486.00,470.00,476.00]},{ x:'09/22/2023',y:[471.00,493.50,466.00,491.00]},{ x:'09/25/2023',y:[504.00,524.00,497.50,510.00]},{ x:'09/26/2023',y:[506.00,515.00,502.00,507.00]},{ x:'09/27/2023',y:[503.00,513.00,498.00,501.00]},{ x:'09/28/2023',y:[506.00,512.00,501.00,507.00]},{ x:'10/02/2023',y:[515.00,533.00,515.00,525.00]},{ x:'10/03/2023',y:[529.00,531.00,518.00,524.00]},{ x:'10/04/2023',y:[515.00,518.00,506.00,508.00]},{ x:'10/05/2023',y:[512.00,517.00,510.00,510.00]},{ x:'10/06/2023',y:[518.00,518.00,501.00,503.00]},{ x:'10/11/2023',y:[509.00,512.00,488.00,488.00]},{ x:'10/12/2023',y:[496.00,498.50,482.00,491.00]},{ x:'10/13/2023',y:[488.00,495.00,481.00,486.50]},{ x:'10/18/2023',y:[461.00,461.00,452.00,454.50]},{ x:'10/19/2023',y:[450.00,456.00,438.00,447.50]},{ x:'10/20/2023',y:[452.00,465.00,439.50,455.50]},{ x:'10/23/2023',y:[458.50,477.00,447.00,447.00]},{ x:'10/24/2023',y:[454.50,462.00,440.50,446.00]},{ x:'10/25/2023',y:[450.00,474.00,449.00,472.00]},{ x:'10/26/2023',y:[460.00,467.00,455.50,459.50]},{ x:'10/27/2023',y:[460.50,462.00,447.00,449.00]},{ x:'10/31/2023',y:[467.00,467.00,442.50,442.50]},{ x:'11/01/2023',y:[449.00,449.50,440.00,442.50]},{ x:'11/02/2023',y:[453.50,467.00,449.50,463.00]},{ x:'11/03/2023',y:[462.00,472.00,460.00,463.50]},{ x:'11/06/2023',y:[473.50,473.50,467.00,468.00]},{ x:'11/07/2023',y:[468.00,474.50,463.00,473.00]},{ x:'11/08/2023',y:[476.50,477.50,470.50,472.00]},{ x:'11/09/2023',y:[472.00,475.50,466.00,467.00]},{ x:'11/10/2023',y:[467.00,475.00,460.50,475.00]},{ x:'11/13/2023',y:[495.00,508.00,483.00,489.00]},{ x:'11/14/2023',y:[501.00,506.00,492.50,495.50]},{ x:'11/15/2023',y:[510.00,515.00,495.00,495.00]},{ x:'11/16/2023',y:[500.00,500.00,487.50,488.00]},{ x:'11/17/2023',y:[488.50,499.50,488.50,499.50]},{ x:'11/20/2023',y:[504.00,504.00,497.00,498.00]},{ x:'11/21/2023',y:[502.00,523.00,500.00,508.00]},{ x:'11/22/2023',y:[508.00,518.00,501.00,509.00]},{ x:'11/23/2023',y:[509.00,526.00,504.00,519.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3131 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());