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:'07/28/2023',y:[602.00,654.00,596.00,654.00]},{ x:'07/31/2023',y:[654.00,714.00,654.00,662.00]},{ x:'08/01/2023',y:[699.00,699.00,600.00,613.00]},{ x:'08/02/2023',y:[606.00,615.00,552.00,552.00]},{ x:'08/04/2023',y:[565.00,595.00,546.00,571.00]},{ x:'08/07/2023',y:[573.00,604.00,571.00,594.00]},{ x:'08/08/2023',y:[605.00,609.00,582.00,593.00]},{ x:'08/09/2023',y:[575.00,585.00,534.00,535.00]},{ x:'08/10/2023',y:[535.00,535.00,492.00,500.00]},{ x:'08/11/2023',y:[520.00,520.00,496.00,500.00]},{ x:'08/14/2023',y:[499.00,516.00,486.00,510.00]},{ x:'08/15/2023',y:[521.00,526.00,504.00,504.00]},{ x:'08/16/2023',y:[497.50,510.00,492.50,507.00]},{ x:'08/17/2023',y:[500.00,557.00,498.00,555.00]},{ x:'08/18/2023',y:[554.00,584.00,550.00,572.00]},{ x:'08/21/2023',y:[598.00,598.00,541.00,555.00]},{ x:'08/22/2023',y:[567.00,578.00,538.00,540.00]},{ x:'08/23/2023',y:[540.00,546.00,510.00,526.00]},{ 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]} ] }], 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());