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/18/2023',y:[16.98,17.06,16.71,16.79]},{ x:'08/21/2023',y:[16.89,16.93,16.72,16.74]},{ x:'08/22/2023',y:[16.93,16.99,16.85,16.87]},{ x:'08/23/2023',y:[16.88,17.02,16.88,17.02]},{ x:'08/24/2023',y:[17.30,17.46,17.21,17.33]},{ x:'08/25/2023',y:[17.10,17.10,16.87,16.88]},{ x:'08/28/2023',y:[16.90,17.00,16.89,16.92]},{ x:'08/29/2023',y:[17.00,17.00,16.86,16.99]},{ x:'08/30/2023',y:[17.14,17.21,17.07,17.09]},{ x:'08/31/2023',y:[17.08,17.11,17.00,17.07]},{ x:'09/01/2023',y:[17.07,17.11,16.99,17.01]},{ x:'09/04/2023',y:[17.01,17.12,16.96,17.12]},{ x:'09/05/2023',y:[17.11,17.16,17.08,17.16]},{ x:'09/06/2023',y:[17.18,17.25,17.16,17.18]},{ x:'09/07/2023',y:[17.11,17.13,17.04,17.04]},{ x:'09/08/2023',y:[16.98,16.98,16.85,16.90]},{ x:'09/11/2023',y:[16.90,16.92,16.64,16.70]},{ x:'09/12/2023',y:[16.72,16.93,16.69,16.89]},{ x:'09/13/2023',y:[16.91,16.97,16.82,16.86]},{ x:'09/14/2023',y:[16.93,17.15,16.93,17.14]},{ x:'09/15/2023',y:[17.14,17.30,17.14,17.28]},{ x:'09/18/2023',y:[17.10,17.18,17.06,17.06]},{ x:'09/19/2023',y:[17.07,17.15,16.97,16.98]},{ x:'09/20/2023',y:[16.94,16.99,16.83,16.85]},{ x:'09/21/2023',y:[16.75,16.75,16.59,16.61]},{ x:'09/22/2023',y:[16.50,16.67,16.48,16.65]},{ x:'09/25/2023',y:[16.65,16.84,16.65,16.81]},{ x:'09/26/2023',y:[16.77,16.79,16.58,16.58]},{ x:'09/27/2023',y:[16.58,16.62,16.51,16.61]},{ x:'09/28/2023',y:[16.69,16.80,16.64,16.71]},{ x:'10/02/2023',y:[16.84,17.12,16.84,17.05]},{ x:'10/03/2023',y:[17.04,17.12,16.95,16.95]},{ x:'10/04/2023',y:[16.80,16.85,16.68,16.83]},{ x:'10/05/2023',y:[16.91,17.05,16.91,17.03]},{ x:'10/06/2023',y:[17.09,17.17,17.07,17.09]},{ x:'10/11/2023',y:[17.28,17.39,17.20,17.21]},{ x:'10/12/2023',y:[17.22,17.29,17.19,17.28]},{ x:'10/13/2023',y:[17.23,17.31,17.20,17.27]},{ x:'10/18/2023',y:[17.10,17.10,16.81,16.82]},{ x:'10/19/2023',y:[16.75,16.88,16.74,16.85]},{ x:'10/20/2023',y:[16.81,16.91,16.69,16.86]},{ x:'10/23/2023',y:[16.80,16.80,16.62,16.63]},{ x:'10/24/2023',y:[16.60,16.67,16.46,16.67]},{ x:'10/25/2023',y:[16.73,16.81,16.71,16.71]},{ x:'10/26/2023',y:[16.45,16.46,16.36,16.36]},{ x:'10/27/2023',y:[16.40,16.43,16.33,16.35]},{ x:'10/30/2023',y:[16.36,16.48,16.36,16.40]},{ x:'10/31/2023',y:[16.45,16.49,16.20,16.22]},{ x:'11/01/2023',y:[16.32,16.35,16.20,16.28]},{ x:'11/02/2023',y:[16.51,16.71,16.51,16.71]},{ x:'11/03/2023',y:[16.72,16.82,16.72,16.79]},{ x:'11/06/2023',y:[16.95,17.06,16.94,16.98]},{ x:'11/07/2023',y:[16.97,17.03,16.92,16.99]},{ x:'11/08/2023',y:[16.99,17.20,16.99,17.13]},{ x:'11/09/2023',y:[17.11,17.19,17.10,17.18]},{ x:'11/10/2023',y:[17.13,17.13,17.02,17.07]},{ x:'11/13/2023',y:[17.36,17.42,17.26,17.28]},{ x:'11/14/2023',y:[17.32,17.39,17.30,17.33]},{ x:'11/15/2023',y:[17.60,17.63,17.41,17.46]},{ x:'11/16/2023',y:[17.53,17.54,17.37,17.44]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00881 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());