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:'03/21/2024',y:[27.49,27.51,27.49,27.49]},{ x:'03/22/2024',y:[27.54,27.74,27.54,27.74]},{ x:'03/25/2024',y:[27.90,27.92,27.78,27.81]},{ x:'03/26/2024',y:[27.70,27.81,27.70,27.81]},{ x:'03/27/2024',y:[27.82,27.87,27.82,27.87]},{ x:'03/28/2024',y:[28.00,28.02,28.00,28.00]},{ x:'03/29/2024',y:[28.02,28.08,28.02,28.08]},{ x:'04/01/2024',y:[28.00,28.01,27.99,27.99]},{ x:'04/02/2024',y:[27.80,27.80,27.77,27.77]},{ x:'04/03/2024',y:[27.66,27.67,27.63,27.63]},{ x:'04/08/2024',y:[27.44,27.46,27.41,27.43]},{ x:'04/09/2024',y:[27.49,27.58,27.49,27.56]},{ x:'04/10/2024',y:[27.62,27.63,27.58,27.63]},{ x:'04/11/2024',y:[27.28,27.35,27.28,27.33]},{ x:'04/12/2024',y:[27.22,27.26,27.19,27.26]},{ x:'04/15/2024',y:[27.36,27.36,27.29,27.32]},{ x:'04/16/2024',y:[27.23,27.26,27.22,27.25]},{ x:'04/17/2024',y:[27.06,27.08,27.06,27.07]},{ x:'04/18/2024',y:[27.23,27.23,27.21,27.23]},{ x:'04/19/2024',y:[27.28,27.63,27.28,27.43]},{ x:'04/22/2024',y:[27.20,27.23,27.20,27.21]},{ x:'04/23/2024',y:[27.36,27.36,27.35,27.35]},{ x:'04/24/2024',y:[27.28,27.28,27.20,27.26]},{ x:'04/25/2024',y:[27.15,27.15,27.10,27.11]},{ x:'04/26/2024',y:[27.01,27.05,27.01,27.05]},{ x:'04/29/2024',y:[27.22,27.25,27.21,27.21]},{ x:'04/30/2024',y:[27.30,27.34,27.30,27.34]},{ x:'05/02/2024',y:[27.25,27.31,27.25,27.31]},{ x:'05/03/2024',y:[27.20,27.25,27.20,27.25]},{ x:'05/06/2024',y:[27.33,27.35,27.33,27.35]},{ x:'05/07/2024',y:[27.51,27.59,27.51,27.59]},{ x:'05/08/2024',y:[27.68,27.68,27.64,27.67]},{ x:'05/09/2024',y:[27.51,27.54,27.51,27.52]},{ x:'05/10/2024',y:[27.69,27.73,27.69,27.73]},{ x:'05/13/2024',y:[27.65,27.65,27.63,27.63]},{ x:'05/14/2024',y:[27.67,27.67,27.65,27.67]},{ x:'05/15/2024',y:[27.72,27.72,27.67,27.67]},{ x:'05/16/2024',y:[27.87,27.92,27.87,27.92]},{ x:'05/17/2024',y:[27.57,27.59,27.55,27.55]},{ x:'05/20/2024',y:[27.45,27.48,27.44,27.47]},{ x:'05/21/2024',y:[27.46,27.47,27.44,27.44]},{ x:'05/22/2024',y:[27.54,27.54,27.51,27.51]},{ x:'05/23/2024',y:[27.53,27.53,27.50,27.50]},{ x:'05/24/2024',y:[27.40,27.40,27.38,27.40]},{ x:'06/11/2024',y:[27.56,27.58,27.54,27.54]},{ x:'06/12/2024',y:[27.66,27.69,27.66,27.69]},{ x:'06/13/2024',y:[27.82,27.84,27.81,27.84]},{ x:'06/14/2024',y:[28.08,28.14,28.08,28.12]},{ x:'06/17/2024',y:[28.16,28.20,28.15,28.15]},{ x:'06/18/2024',y:[28.15,28.17,28.11,28.17]},{ x:'06/19/2024',y:[28.26,28.32,28.26,28.31]},{ x:'06/20/2024',y:[28.23,28.23,28.18,28.21]},{ x:'06/21/2024',y:[28.12,28.15,28.12,28.15]},{ x:'06/24/2024',y:[28.22,28.25,28.15,28.19]},{ x:'06/25/2024',y:[28.28,28.33,28.28,28.32]},{ x:'06/26/2024',y:[28.25,28.26,28.25,28.26]},{ x:'06/27/2024',y:[28.06,28.06,28.03,28.06]},{ x:'06/28/2024',y:[28.11,28.11,28.03,28.03]},{ x:'07/01/2024',y:[27.64,27.68,27.64,27.67]},{ x:'07/02/2024',y:[27.61,27.69,27.61,27.67]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00847b 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());