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:'01/22/2024',y:[27.40,27.44,27.39,27.44]},{ x:'01/23/2024',y:[27.42,27.42,27.38,27.41]},{ x:'01/24/2024',y:[27.34,27.34,27.31,27.33]},{ x:'01/25/2024',y:[27.17,27.21,27.17,27.21]},{ x:'01/26/2024',y:[27.39,27.39,27.35,27.35]},{ x:'01/29/2024',y:[27.34,27.35,27.30,27.32]},{ x:'01/30/2024',y:[27.47,27.57,27.47,27.52]},{ x:'01/31/2024',y:[27.61,27.83,27.61,27.82]},{ x:'02/01/2024',y:[28.11,28.14,28.09,28.14]},{ x:'02/02/2024',y:[28.18,28.18,28.13,28.13]},{ x:'02/05/2024',y:[27.87,27.92,27.87,27.90]},{ x:'02/15/2024',y:[27.55,27.55,27.35,27.39]},{ x:'02/16/2024',y:[27.39,27.40,27.38,27.38]},{ x:'02/19/2024',y:[27.38,27.38,27.36,27.38]},{ x:'02/20/2024',y:[27.33,27.41,27.30,27.40]},{ x:'02/21/2024',y:[27.40,27.45,27.40,27.44]},{ x:'02/22/2024',y:[27.38,27.46,27.38,27.44]},{ x:'02/23/2024',y:[27.45,27.46,27.45,27.46]},{ x:'02/26/2024',y:[27.72,27.72,27.70,27.70]},{ x:'02/27/2024',y:[27.30,27.36,27.30,27.36]},{ x:'02/29/2024',y:[27.40,27.40,27.38,27.39]},{ x:'03/01/2024',y:[27.42,27.44,27.41,27.44]},{ x:'03/04/2024',y:[27.51,27.55,27.49,27.55]},{ x:'03/05/2024',y:[27.50,27.53,27.49,27.53]},{ x:'03/06/2024',y:[27.71,27.71,27.71,27.71]},{ x:'03/07/2024',y:[27.81,27.90,27.81,27.87]},{ x:'03/08/2024',y:[27.83,27.83,27.81,27.82]},{ x:'03/11/2024',y:[27.82,27.90,27.82,27.88]},{ x:'03/12/2024',y:[27.87,27.89,27.87,27.87]},{ x:'03/13/2024',y:[27.65,27.70,27.65,27.69]},{ x:'03/14/2024',y:[27.61,27.63,27.60,27.60]},{ x:'03/15/2024',y:[27.40,27.42,27.39,27.42]},{ x:'03/18/2024',y:[27.47,27.47,27.39,27.41]},{ x:'03/19/2024',y:[27.39,27.45,27.39,27.45]},{ x:'03/20/2024',y:[27.51,27.52,27.49,27.49]},{ 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]} ] }], 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());