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/23/2024',y:[35.54,35.54,35.51,35.51]},{ x:'01/24/2024',y:[35.40,35.40,35.35,35.35]},{ x:'01/25/2024',y:[35.35,35.35,35.31,35.31]},{ x:'01/26/2024',y:[35.63,35.63,35.58,35.60]},{ x:'01/29/2024',y:[35.50,35.50,35.50,35.50]},{ x:'01/30/2024',y:[35.51,35.57,35.51,35.55]},{ x:'01/31/2024',y:[35.69,35.77,35.69,35.77]},{ x:'02/01/2024',y:[35.83,35.96,35.83,35.89]},{ x:'02/02/2024',y:[36.02,36.02,35.88,35.88]},{ x:'02/05/2024',y:[35.68,35.70,35.68,35.68]},{ x:'02/15/2024',y:[35.01,35.16,34.95,35.16]},{ x:'02/16/2024',y:[34.92,34.96,34.90,34.96]},{ x:'02/19/2024',y:[34.87,34.94,34.87,34.90]},{ x:'02/20/2024',y:[34.89,35.00,34.89,35.00]},{ x:'02/21/2024',y:[35.15,35.15,35.07,35.10]},{ x:'02/22/2024',y:[35.10,35.18,35.09,35.16]},{ x:'02/23/2024',y:[35.27,35.30,35.26,35.30]},{ x:'02/26/2024',y:[35.48,35.54,35.48,35.51]},{ x:'02/27/2024',y:[35.41,35.42,35.34,35.34]},{ x:'02/29/2024',y:[35.37,35.37,35.35,35.35]},{ x:'03/01/2024',y:[35.27,35.32,35.27,35.31]},{ x:'03/04/2024',y:[35.34,35.37,35.34,35.37]},{ x:'03/05/2024',y:[35.39,35.45,35.39,35.45]},{ x:'03/06/2024',y:[35.70,35.70,35.65,35.70]},{ x:'03/07/2024',y:[35.72,35.80,35.72,35.80]},{ x:'03/08/2024',y:[35.80,35.81,35.80,35.81]},{ x:'03/11/2024',y:[35.85,35.85,35.84,35.84]},{ x:'03/12/2024',y:[35.80,35.81,35.77,35.77]},{ x:'03/13/2024',y:[35.68,35.69,35.64,35.69]},{ x:'03/14/2024',y:[35.64,35.65,35.64,35.65]},{ x:'03/15/2024',y:[35.47,35.50,35.47,35.50]},{ x:'03/18/2024',y:[35.50,35.52,35.44,35.50]},{ x:'03/19/2024',y:[35.57,35.58,35.57,35.58]},{ x:'03/20/2024',y:[35.70,35.74,35.70,35.74]},{ x:'03/21/2024',y:[35.68,35.69,35.68,35.68]},{ x:'03/22/2024',y:[36.03,36.06,36.03,36.04]},{ x:'03/25/2024',y:[36.10,36.12,36.10,36.12]},{ x:'03/26/2024',y:[35.99,36.08,35.99,36.05]},{ x:'03/27/2024',y:[36.06,36.08,36.02,36.08]},{ x:'03/28/2024',y:[36.20,36.20,36.17,36.19]},{ x:'03/29/2024',y:[36.25,36.28,36.25,36.28]},{ x:'04/01/2024',y:[36.25,36.25,36.25,36.25]},{ x:'04/02/2024',y:[35.94,35.98,35.91,35.94]},{ x:'04/03/2024',y:[35.80,35.86,35.78,35.79]},{ x:'04/08/2024',y:[35.70,35.72,35.70,35.71]},{ x:'04/09/2024',y:[35.74,35.78,35.73,35.73]},{ x:'04/10/2024',y:[35.86,35.90,35.86,35.90]},{ x:'04/11/2024',y:[35.64,35.64,35.53,35.55]},{ x:'04/12/2024',y:[35.50,35.55,35.46,35.51]},{ x:'04/15/2024',y:[35.58,35.58,35.53,35.53]},{ x:'04/16/2024',y:[35.39,35.41,35.38,35.40]},{ x:'04/17/2024',y:[35.18,35.18,35.00,35.01]},{ x:'04/18/2024',y:[34.75,34.75,34.75,34.75]},{ x:'04/19/2024',y:[34.77,35.01,34.77,34.91]},{ x:'04/22/2024',y:[34.95,34.96,34.90,34.90]},{ x:'04/23/2024',y:[35.03,35.03,35.03,35.03]},{ x:'04/24/2024',y:[35.07,35.07,35.07,35.07]},{ x:'04/25/2024',y:[35.02,35.02,34.90,34.90]},{ x:'04/26/2024',y:[34.79,34.79,34.73,34.79]},{ x:'04/29/2024',y:[34.97,34.97,34.94,34.94]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00785b 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());