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/09/2023',y:[14.64,14.77,14.60,14.69]},{ x:'08/10/2023',y:[14.63,14.63,14.37,14.44]},{ x:'08/11/2023',y:[14.57,14.58,14.42,14.44]},{ x:'08/14/2023',y:[14.34,14.43,14.29,14.31]},{ x:'08/15/2023',y:[14.47,14.53,14.43,14.46]},{ x:'08/16/2023',y:[14.44,14.47,14.37,14.44]},{ x:'08/17/2023',y:[14.38,14.59,14.35,14.59]},{ x:'08/18/2023',y:[14.57,14.59,14.35,14.41]},{ x:'08/21/2023',y:[14.50,14.51,14.36,14.42]},{ x:'08/22/2023',y:[14.55,14.59,14.50,14.57]},{ x:'08/23/2023',y:[14.55,14.66,14.55,14.66]},{ x:'08/24/2023',y:[14.91,15.03,14.86,14.95]},{ x:'08/25/2023',y:[14.76,14.76,14.59,14.60]},{ x:'08/28/2023',y:[14.69,14.70,14.61,14.63]},{ x:'08/29/2023',y:[14.68,14.73,14.63,14.73]},{ x:'08/30/2023',y:[14.90,14.91,14.82,14.83]},{ x:'08/31/2023',y:[14.78,14.79,14.72,14.76]},{ x:'09/01/2023',y:[14.76,14.80,14.72,14.73]},{ x:'09/04/2023',y:[14.73,14.78,14.66,14.78]},{ x:'09/05/2023',y:[14.73,14.81,14.72,14.81]},{ x:'09/06/2023',y:[14.83,14.85,14.79,14.81]},{ x:'09/07/2023',y:[14.74,14.75,14.68,14.68]},{ x:'09/08/2023',y:[14.60,14.60,14.52,14.56]},{ x:'09/11/2023',y:[14.57,14.59,14.35,14.39]},{ x:'09/12/2023',y:[14.45,14.55,14.38,14.52]},{ x:'09/13/2023',y:[14.53,14.62,14.46,14.52]},{ x:'09/14/2023',y:[14.61,14.76,14.61,14.75]},{ x:'09/15/2023',y:[14.78,14.88,14.77,14.86]},{ x:'09/18/2023',y:[14.75,14.76,14.65,14.65]},{ x:'09/19/2023',y:[14.65,14.74,14.61,14.61]},{ x:'09/20/2023',y:[14.55,14.61,14.47,14.48]},{ x:'09/21/2023',y:[14.34,14.34,14.23,14.23]},{ x:'09/22/2023',y:[14.13,14.33,14.13,14.33]},{ x:'09/25/2023',y:[14.33,14.48,14.33,14.48]},{ x:'09/26/2023',y:[14.39,14.41,14.26,14.27]},{ x:'09/27/2023',y:[14.22,14.28,14.19,14.28]},{ x:'09/28/2023',y:[14.42,14.43,14.30,14.36]},{ x:'10/02/2023',y:[14.53,14.69,14.53,14.65]},{ x:'10/03/2023',y:[14.65,14.69,14.55,14.55]},{ x:'10/04/2023',y:[14.38,14.47,14.33,14.45]},{ x:'10/05/2023',y:[14.52,14.68,14.52,14.65]},{ x:'10/06/2023',y:[14.71,14.78,14.68,14.71]},{ x:'10/11/2023',y:[14.91,14.98,14.85,14.90]},{ x:'10/12/2023',y:[14.92,15.00,14.90,14.98]},{ x:'10/13/2023',y:[14.89,14.94,14.88,14.94]},{ x:'10/18/2023',y:[14.70,14.70,14.52,14.52]},{ x:'10/19/2023',y:[14.50,14.57,14.47,14.53]},{ x:'10/20/2023',y:[14.49,14.58,14.40,14.54]},{ x:'10/23/2023',y:[14.46,14.46,14.34,14.34]},{ x:'10/24/2023',y:[14.33,14.37,14.21,14.37]},{ x:'10/25/2023',y:[14.43,14.50,14.43,14.44]},{ x:'10/26/2023',y:[14.14,14.18,14.07,14.07]},{ x:'10/27/2023',y:[14.14,14.17,14.12,14.13]},{ x:'10/30/2023',y:[14.14,14.23,14.14,14.17]},{ x:'10/31/2023',y:[14.18,14.22,13.95,13.95]},{ x:'11/01/2023',y:[14.06,14.07,13.96,14.05]},{ x:'11/02/2023',y:[14.29,14.41,14.29,14.40]},{ x:'11/03/2023',y:[14.48,14.55,14.47,14.53]},{ x:'11/06/2023',y:[14.67,14.76,14.65,14.68]},{ x:'11/07/2023',y:[14.67,14.72,14.64,14.67]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());