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:'04/30/2024',y:[28.70,28.85,28.65,28.73]},{ x:'05/02/2024',y:[28.14,28.20,28.05,28.07]},{ x:'05/03/2024',y:[27.73,27.74,27.61,27.65]},{ x:'05/06/2024',y:[28.01,28.24,28.01,28.21]},{ x:'05/07/2024',y:[28.43,28.45,28.23,28.27]},{ x:'05/08/2024',y:[28.19,28.20,27.97,28.04]},{ x:'05/09/2024',y:[27.91,28.02,27.84,27.99]},{ x:'05/10/2024',y:[28.30,28.52,28.30,28.52]},{ x:'05/13/2024',y:[28.53,28.71,28.35,28.66]},{ x:'05/14/2024',y:[29.34,29.48,29.27,29.42]},{ x:'05/15/2024',y:[30.28,31.05,30.28,30.73]},{ x:'05/16/2024',y:[30.42,30.70,30.24,30.52]},{ x:'05/17/2024',y:[29.83,30.08,29.71,30.08]},{ x:'05/20/2024',y:[31.41,31.86,31.41,31.53]},{ x:'05/21/2024',y:[31.39,31.56,30.80,31.12]},{ x:'05/22/2024',y:[31.25,31.45,30.85,30.96]},{ x:'05/23/2024',y:[29.48,29.57,29.37,29.43]},{ x:'05/24/2024',y:[29.32,29.50,29.30,29.49]},{ x:'06/11/2024',y:[27.88,27.96,27.63,27.67]},{ x:'06/12/2024',y:[27.63,27.78,27.63,27.75]},{ x:'06/13/2024',y:[27.72,27.72,27.52,27.67]},{ x:'06/14/2024',y:[27.55,27.62,27.53,27.62]},{ x:'06/17/2024',y:[27.40,27.44,27.22,27.25]},{ x:'06/18/2024',y:[27.40,27.40,27.24,27.29]},{ x:'06/19/2024',y:[27.27,27.41,27.25,27.37]},{ x:'06/20/2024',y:[27.50,27.72,27.45,27.58]},{ x:'06/21/2024',y:[27.71,27.79,27.61,27.68]},{ x:'06/24/2024',y:[27.12,27.20,27.03,27.20]},{ x:'06/25/2024',y:[27.22,27.30,27.15,27.30]},{ x:'06/26/2024',y:[26.91,26.91,26.75,26.83]},{ x:'06/27/2024',y:[26.80,26.84,26.78,26.79]},{ x:'06/28/2024',y:[26.68,26.90,26.66,26.90]},{ x:'07/01/2024',y:[26.88,26.96,26.76,26.76]},{ x:'07/02/2024',y:[27.13,27.23,27.09,27.14]},{ x:'07/03/2024',y:[27.25,27.38,27.21,27.36]},{ x:'07/04/2024',y:[27.92,27.92,27.81,27.81]},{ x:'07/05/2024',y:[27.98,28.09,27.98,28.08]},{ x:'07/12/2024',y:[27.72,27.73,27.59,27.60]},{ x:'07/15/2024',y:[28.00,28.25,27.99,28.14]},{ x:'07/16/2024',y:[27.74,27.80,27.72,27.80]},{ x:'07/17/2024',y:[27.43,27.52,27.38,27.39]},{ x:'07/18/2024',y:[27.14,27.14,27.01,27.10]},{ x:'07/19/2024',y:[26.28,26.40,26.25,26.34]},{ x:'07/22/2024',y:[26.16,26.20,26.05,26.05]},{ x:'07/23/2024',y:[25.75,25.96,25.75,25.80]},{ x:'07/26/2024',y:[25.32,25.59,25.27,25.44]},{ x:'07/29/2024',y:[25.56,25.56,25.36,25.46]},{ x:'07/30/2024',y:[25.16,25.16,24.97,24.97]},{ x:'07/31/2024',y:[25.29,25.53,25.27,25.53]},{ x:'08/01/2024',y:[25.94,26.02,25.75,25.80]},{ x:'08/02/2024',y:[25.00,25.20,25.00,25.18]},{ x:'08/05/2024',y:[25.09,25.48,25.07,25.33]},{ x:'08/06/2024',y:[24.91,24.91,24.44,24.44]},{ x:'08/07/2024',y:[24.59,24.70,24.51,24.67]},{ x:'08/08/2024',y:[24.35,24.37,24.25,24.34]},{ x:'08/09/2024',y:[24.49,24.75,24.43,24.68]},{ x:'08/12/2024',y:[24.50,24.53,24.43,24.52]},{ x:'08/13/2024',y:[24.93,24.94,24.76,24.80]},{ x:'08/14/2024',y:[24.92,24.96,24.76,24.77]},{ x:'08/15/2024',y:[24.75,24.94,24.71,24.87]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00763u 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());