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/21/2023',y:[4.50,4.59,4.48,4.59]},{ x:'07/24/2023',y:[4.55,4.57,4.53,4.54]},{ x:'07/25/2023',y:[4.56,4.61,4.53,4.53]},{ x:'07/26/2023',y:[4.53,4.56,4.45,4.45]},{ x:'07/27/2023',y:[4.49,4.52,4.48,4.50]},{ x:'07/28/2023',y:[4.50,4.56,4.50,4.56]},{ x:'07/31/2023',y:[4.57,4.58,4.50,4.50]},{ x:'08/01/2023',y:[4.49,4.51,4.49,4.50]},{ x:'08/02/2023',y:[4.50,4.50,4.40,4.41]},{ x:'08/04/2023',y:[4.40,4.40,4.35,4.36]},{ x:'08/07/2023',y:[4.35,4.39,4.35,4.39]},{ x:'08/08/2023',y:[4.35,4.35,4.32,4.35]},{ x:'08/09/2023',y:[4.30,4.35,4.30,4.30]},{ x:'08/10/2023',y:[4.26,4.26,4.19,4.20]},{ x:'08/11/2023',y:[4.21,4.22,4.20,4.20]},{ x:'08/14/2023',y:[4.20,4.20,4.16,4.16]},{ x:'08/15/2023',y:[4.30,4.30,4.15,4.18]},{ x:'08/16/2023',y:[4.19,4.21,4.17,4.17]},{ x:'08/17/2023',y:[4.20,4.26,4.19,4.25]},{ x:'08/18/2023',y:[4.26,4.26,4.24,4.24]},{ x:'08/21/2023',y:[4.24,4.24,4.23,4.23]},{ x:'08/22/2023',y:[4.60,4.60,4.28,4.28]},{ x:'08/23/2023',y:[4.25,4.30,4.25,4.28]},{ x:'08/24/2023',y:[4.36,4.43,4.36,4.40]},{ x:'08/25/2023',y:[4.37,4.40,4.35,4.36]},{ x:'08/28/2023',y:[4.38,4.42,4.38,4.42]},{ x:'08/29/2023',y:[4.39,4.46,4.39,4.46]},{ x:'08/30/2023',y:[4.50,4.57,4.50,4.54]},{ x:'08/31/2023',y:[4.55,4.56,4.54,4.54]},{ x:'09/01/2023',y:[4.54,4.57,4.53,4.57]},{ x:'09/04/2023',y:[4.57,4.62,4.56,4.61]},{ x:'09/05/2023',y:[4.63,4.70,4.63,4.70]},{ x:'09/06/2023',y:[4.72,4.74,4.71,4.72]},{ x:'09/07/2023',y:[4.70,4.70,4.68,4.69]},{ x:'09/08/2023',y:[4.62,4.66,4.61,4.64]},{ x:'09/11/2023',y:[4.65,4.65,4.60,4.60]},{ x:'09/12/2023',y:[4.62,4.72,4.62,4.72]},{ x:'09/13/2023',y:[4.77,4.82,4.77,4.82]},{ x:'09/14/2023',y:[4.85,4.93,4.85,4.92]},{ x:'09/15/2023',y:[4.92,5.01,4.92,4.99]},{ x:'09/18/2023',y:[4.99,5.04,4.98,4.99]},{ x:'09/19/2023',y:[5.00,5.01,4.95,4.96]},{ x:'09/20/2023',y:[4.90,4.90,4.81,4.82]},{ x:'09/21/2023',y:[4.75,4.75,4.70,4.71]},{ x:'09/22/2023',y:[4.71,4.83,4.71,4.83]},{ x:'09/25/2023',y:[4.83,4.92,4.83,4.88]},{ x:'09/26/2023',y:[4.85,4.85,4.80,4.80]},{ x:'09/27/2023',y:[4.78,4.79,4.75,4.77]},{ x:'09/28/2023',y:[4.83,4.84,4.78,4.79]},{ x:'10/02/2023',y:[4.83,4.87,4.83,4.86]},{ x:'10/03/2023',y:[4.92,4.98,4.90,4.90]},{ x:'10/04/2023',y:[4.84,4.90,4.84,4.89]},{ x:'10/05/2023',y:[4.94,4.99,4.94,4.97]},{ x:'10/06/2023',y:[5.00,5.00,4.93,4.95]},{ x:'10/11/2023',y:[4.99,5.09,4.99,5.06]},{ x:'10/12/2023',y:[5.09,5.11,5.05,5.10]},{ x:'10/13/2023',y:[5.10,5.17,5.10,5.16]},{ x:'10/18/2023',y:[5.05,5.10,5.00,5.03]},{ x:'10/19/2023',y:[5.01,5.14,5.01,5.11]},{ x:'10/20/2023',y:[5.12,5.12,5.07,5.11]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020031 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());