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:[43.40,43.40,43.28,43.37]},{ x:'01/23/2024',y:[43.35,43.39,43.27,43.37]},{ x:'01/24/2024',y:[43.38,43.48,43.36,43.43]},{ x:'01/25/2024',y:[43.43,43.43,43.32,43.42]},{ x:'01/26/2024',y:[43.41,43.41,43.32,43.36]},{ x:'01/29/2024',y:[43.33,43.35,43.29,43.34]},{ x:'01/30/2024',y:[43.22,43.26,43.19,43.24]},{ x:'01/31/2024',y:[43.23,43.37,43.21,43.36]},{ x:'02/01/2024',y:[43.38,43.50,43.38,43.48]},{ x:'02/02/2024',y:[43.42,43.42,43.29,43.33]},{ x:'02/05/2024',y:[43.40,43.53,43.40,43.52]},{ x:'02/15/2024',y:[43.52,43.83,43.50,43.65]},{ x:'02/16/2024',y:[43.57,43.59,43.51,43.59]},{ x:'02/19/2024',y:[43.61,43.62,43.52,43.61]},{ x:'02/20/2024',y:[43.68,43.76,43.68,43.75]},{ x:'02/21/2024',y:[43.75,43.79,43.73,43.78]},{ x:'02/22/2024',y:[43.77,43.86,43.70,43.84]},{ x:'02/23/2024',y:[43.77,43.88,43.77,43.87]},{ x:'02/26/2024',y:[43.87,43.88,43.84,43.84]},{ x:'02/27/2024',y:[43.86,43.91,43.86,43.90]},{ x:'02/29/2024',y:[43.92,44.05,43.92,44.01]},{ x:'03/01/2024',y:[43.99,44.00,43.93,43.95]},{ x:'03/04/2024',y:[43.93,43.93,43.87,43.87]},{ x:'03/05/2024',y:[43.86,43.92,43.85,43.90]},{ x:'03/06/2024',y:[43.92,43.99,43.92,43.99]},{ x:'03/07/2024',y:[43.98,43.98,43.83,43.87]},{ x:'03/08/2024',y:[43.90,43.90,43.74,43.74]},{ x:'03/11/2024',y:[43.74,43.87,43.74,43.87]},{ x:'03/12/2024',y:[43.82,43.85,43.80,43.81]},{ x:'03/13/2024',y:[43.81,43.84,43.80,43.80]},{ x:'03/14/2024',y:[43.80,43.89,43.79,43.86]},{ x:'03/15/2024',y:[43.90,44.08,43.90,44.07]},{ x:'03/18/2024',y:[44.05,44.09,44.01,44.09]},{ x:'03/19/2024',y:[44.07,44.24,44.07,44.22]},{ x:'03/20/2024',y:[44.22,44.35,44.22,44.34]},{ x:'03/21/2024',y:[44.40,44.40,44.24,44.30]},{ x:'03/22/2024',y:[44.40,44.57,44.39,44.55]},{ x:'03/25/2024',y:[44.68,44.68,44.27,44.40]},{ x:'03/26/2024',y:[44.40,44.54,44.32,44.51]},{ x:'03/27/2024',y:[44.60,44.66,44.54,44.65]},{ x:'03/28/2024',y:[44.56,44.69,44.55,44.55]},{ x:'03/29/2024',y:[44.44,44.65,44.44,44.65]},{ x:'04/01/2024',y:[44.64,44.66,44.59,44.64]},{ x:'04/02/2024',y:[44.64,44.75,44.64,44.75]},{ x:'04/03/2024',y:[44.70,44.81,44.70,44.71]},{ x:'04/08/2024',y:[44.82,44.93,44.81,44.82]},{ x:'04/09/2024',y:[44.82,44.88,44.82,44.84]},{ x:'04/10/2024',y:[44.84,44.84,44.61,44.67]},{ x:'04/11/2024',y:[44.75,45.05,44.75,45.03]},{ x:'04/12/2024',y:[45.04,45.10,45.02,45.08]},{ x:'04/15/2024',y:[45.13,45.28,45.13,45.24]},{ x:'04/16/2024',y:[45.36,45.54,45.36,45.50]},{ x:'04/17/2024',y:[45.50,45.50,45.38,45.41]},{ x:'04/18/2024',y:[45.38,45.39,45.24,45.27]},{ x:'04/19/2024',y:[45.45,45.60,45.45,45.49]},{ x:'04/22/2024',y:[46.15,46.15,45.51,45.62]},{ x:'04/23/2024',y:[45.63,45.71,45.63,45.66]},{ x:'04/24/2024',y:[45.61,45.61,45.45,45.57]},{ x:'04/25/2024',y:[45.61,45.67,45.61,45.65]},{ x:'04/26/2024',y:[45.65,45.65,45.56,45.64]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00864b 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());