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:'06/02/2023',y:[29.26,29.52,29.26,29.52]},{ x:'06/05/2023',y:[30.00,30.25,29.95,30.25]},{ x:'06/06/2023',y:[30.17,31.00,30.02,31.00]},{ x:'06/07/2023',y:[30.57,30.64,30.04,30.21]},{ x:'06/08/2023',y:[29.94,29.98,29.55,29.69]},{ x:'06/09/2023',y:[30.00,30.11,29.95,30.11]},{ x:'06/12/2023',y:[30.29,30.36,30.18,30.32]},{ x:'06/13/2023',y:[30.46,30.72,30.46,30.65]},{ x:'06/14/2023',y:[30.81,31.16,30.81,31.16]},{ x:'06/15/2023',y:[31.16,31.33,31.08,31.16]},{ x:'06/16/2023',y:[31.01,31.19,30.93,31.19]},{ x:'06/19/2023',y:[31.20,31.28,30.97,31.02]},{ x:'06/20/2023',y:[30.96,31.02,30.80,30.91]},{ x:'06/21/2023',y:[31.04,31.17,30.99,31.14]},{ x:'06/26/2023',y:[30.85,30.85,30.63,30.67]},{ x:'06/27/2023',y:[30.53,30.59,30.41,30.59]},{ x:'06/28/2023',y:[30.79,31.03,30.69,31.03]},{ x:'06/29/2023',y:[31.37,31.39,31.14,31.25]},{ x:'06/30/2023',y:[31.12,31.12,30.90,31.02]},{ x:'07/03/2023',y:[31.39,31.46,31.36,31.46]},{ x:'07/04/2023',y:[31.29,31.36,31.24,31.31]},{ x:'07/05/2023',y:[31.26,31.34,31.20,31.25]},{ x:'07/06/2023',y:[31.11,31.13,30.80,30.93]},{ x:'07/07/2023',y:[30.83,30.88,30.74,30.79]},{ x:'07/10/2023',y:[30.56,30.60,30.36,30.53]},{ 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]} ] }], 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());