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/11/2023',y:[30.54,30.58,30.31,30.37]},{ x:'07/12/2023',y:[30.16,30.20,30.06,30.18]},{ x:'07/13/2023',y:[30.30,30.51,30.30,30.43]},{ x:'07/14/2023',y:[30.21,30.44,30.14,30.34]},{ x:'07/17/2023',y:[30.33,30.37,30.27,30.31]},{ x:'07/18/2023',y:[30.49,30.67,30.48,30.57]},{ x:'07/19/2023',y:[30.75,30.89,30.75,30.78]},{ x:'07/20/2023',y:[30.90,30.92,30.67,30.73]},{ x:'07/21/2023',y:[30.72,30.84,30.66,30.67]},{ x:'07/24/2023',y:[30.93,31.03,30.89,30.90]},{ x:'07/25/2023',y:[30.98,31.02,30.90,30.98]},{ x:'07/26/2023',y:[30.88,30.98,30.87,30.93]},{ x:'07/27/2023',y:[30.97,31.11,30.89,31.11]},{ x:'07/28/2023',y:[30.87,31.17,30.61,30.80]},{ x:'07/31/2023',y:[31.53,31.59,31.33,31.40]},{ x:'08/01/2023',y:[31.57,31.67,31.57,31.65]},{ x:'08/02/2023',y:[31.58,31.61,31.19,31.26]},{ x:'08/04/2023',y:[31.01,31.02,30.73,30.87]},{ x:'08/07/2023',y:[30.84,31.00,30.83,30.96]},{ x:'08/08/2023',y:[31.17,31.23,31.05,31.13]},{ x:'08/09/2023',y:[31.06,31.10,30.97,31.06]},{ x:'08/10/2023',y:[31.05,31.22,31.01,31.22]},{ x:'08/11/2023',y:[31.38,31.39,31.31,31.33]},{ x:'08/14/2023',y:[31.19,31.22,30.89,30.91]},{ x:'08/15/2023',y:[31.11,31.16,31.08,31.11]},{ x:'08/16/2023',y:[30.79,30.84,30.68,30.70]},{ x:'08/17/2023',y:[30.41,30.62,30.25,30.60]},{ x:'08/18/2023',y:[30.31,30.50,30.29,30.31]},{ x:'08/21/2023',y:[30.49,30.59,30.34,30.48]},{ x:'08/22/2023',y:[30.63,30.73,30.58,30.71]},{ x:'08/23/2023',y:[30.79,30.87,30.78,30.87]},{ x:'08/24/2023',y:[30.92,31.04,30.91,31.03]},{ x:'08/25/2023',y:[30.82,30.84,30.71,30.77]},{ x:'08/28/2023',y:[31.04,31.17,31.03,31.12]},{ x:'08/29/2023',y:[31.34,31.34,31.21,31.30]},{ x:'08/30/2023',y:[31.42,31.49,31.38,31.38]},{ x:'08/31/2023',y:[31.47,31.69,31.47,31.65]},{ x:'09/01/2023',y:[31.73,31.98,31.73,31.93]},{ x:'09/04/2023',y:[32.00,32.18,32.00,32.18]},{ x:'09/05/2023',y:[32.12,32.20,32.10,32.19]},{ x:'09/06/2023',y:[32.51,32.54,32.36,32.46]},{ x:'09/07/2023',y:[32.49,32.53,32.31,32.33]},{ x:'09/08/2023',y:[32.31,32.32,31.95,32.01]},{ x:'09/11/2023',y:[32.09,32.11,31.96,32.00]},{ x:'09/12/2023',y:[32.08,32.16,31.99,32.14]},{ x:'09/13/2023',y:[32.28,32.30,32.12,32.24]},{ x:'09/14/2023',y:[32.37,32.61,32.35,32.61]},{ x:'09/15/2023',y:[32.95,33.07,32.90,32.95]},{ x:'09/18/2023',y:[32.77,32.80,32.68,32.75]},{ x:'09/19/2023',y:[32.95,32.99,32.78,32.86]},{ x:'09/20/2023',y:[32.86,32.90,32.66,32.67]},{ x:'09/21/2023',y:[32.53,32.54,32.33,32.33]},{ x:'09/22/2023',y:[32.06,32.30,32.02,32.28]},{ x:'09/25/2023',y:[32.28,32.40,32.28,32.36]},{ x:'09/26/2023',y:[32.20,32.27,32.13,32.19]},{ x:'09/27/2023',y:[31.89,32.21,31.89,32.21]},{ x:'09/28/2023',y:[32.20,32.27,31.84,31.98]},{ x:'10/02/2023',y:[32.09,32.18,31.72,31.80]},{ x:'10/03/2023',y:[31.25,31.31,31.02,31.12]},{ x:'10/04/2023',y:[30.59,30.63,30.33,30.47]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00645 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());