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/30/2023',y:[35.62,35.70,35.62,35.70]},{ x:'01/31/2023',y:[35.38,35.38,35.38,35.38]},{ x:'02/01/2023',y:[35.64,35.64,35.62,35.62]},{ x:'02/02/2023',y:[35.60,35.60,35.60,35.60]},{ x:'02/03/2023',y:[35.84,35.84,35.84,35.84]},{ x:'02/06/2023',y:[35.42,35.46,35.42,35.46]},{ x:'02/07/2023',y:[35.33,35.38,35.33,35.38]},{ x:'02/08/2023',y:[35.12,35.23,35.12,35.23]},{ x:'02/09/2023',y:[35.23,35.23,35.15,35.15]},{ x:'02/10/2023',y:[34.78,34.86,34.78,34.86]},{ x:'02/13/2023',y:[34.52,34.52,34.47,34.47]},{ x:'02/14/2023',y:[34.70,34.70,34.70,34.70]},{ x:'02/15/2023',y:[34.74,34.74,34.74,34.74]},{ x:'02/16/2023',y:[34.47,34.56,34.47,34.56]},{ x:'02/17/2023',y:[34.01,34.01,33.89,33.96]},{ x:'02/20/2023',y:[34.14,34.14,34.14,34.14]},{ x:'02/21/2023',y:[34.14,34.14,34.13,34.13]},{ x:'02/22/2023',y:[33.78,33.83,33.78,33.83]},{ x:'02/23/2023',y:[33.75,33.75,33.75,33.75]},{ x:'02/24/2023',y:[34.08,34.26,34.08,34.21]},{ x:'03/01/2023',y:[34.06,34.06,34.02,34.04]},{ x:'03/02/2023',y:[33.70,33.76,33.70,33.76]},{ x:'03/03/2023',y:[33.85,33.89,33.85,33.89]},{ x:'03/06/2023',y:[34.47,34.47,34.47,34.47]},{ x:'03/07/2023',y:[34.34,34.34,34.34,34.34]},{ x:'03/08/2023',y:[34.37,34.37,34.37,34.37]},{ x:'03/09/2023',y:[34.35,34.35,34.33,34.33]},{ x:'03/10/2023',y:[34.53,34.71,34.53,34.71]},{ x:'03/13/2023',y:[34.72,34.72,34.69,34.69]},{ x:'03/14/2023',y:[34.63,34.63,34.63,34.63]},{ x:'03/15/2023',y:[34.37,34.68,34.37,34.60]},{ x:'03/16/2023',y:[34.85,34.85,34.82,34.85]},{ x:'03/17/2023',y:[34.77,34.77,34.77,34.77]},{ x:'03/20/2023',y:[34.68,34.68,34.68,34.68]},{ x:'03/21/2023',y:[34.74,34.83,34.74,34.83]},{ x:'03/22/2023',y:[34.83,34.90,34.83,34.90]},{ x:'03/23/2023',y:[34.76,34.81,34.76,34.81]},{ x:'03/24/2023',y:[34.82,34.82,34.76,34.80]},{ x:'03/27/2023',y:[35.02,35.02,35.02,35.02]},{ x:'03/28/2023',y:[34.50,34.50,34.47,34.47]},{ x:'03/29/2023',y:[34.38,34.46,34.38,34.46]},{ x:'03/30/2023',y:[34.70,34.76,34.70,34.76]},{ x:'03/31/2023',y:[34.86,34.86,34.81,34.81]},{ x:'04/06/2023',y:[35.79,35.89,35.79,35.89]},{ x:'04/07/2023',y:[35.89,35.90,35.89,35.90]},{ x:'04/10/2023',y:[35.60,35.68,35.60,35.68]},{ x:'04/11/2023',y:[35.69,35.69,35.69,35.69]},{ x:'04/12/2023',y:[35.80,35.80,35.75,35.75]},{ x:'04/13/2023',y:[35.75,35.75,35.59,35.59]},{ x:'04/14/2023',y:[35.56,35.56,35.47,35.47]},{ x:'04/17/2023',y:[35.43,35.45,35.43,35.45]},{ x:'04/18/2023',y:[35.09,35.09,35.04,35.04]},{ x:'04/19/2023',y:[35.21,35.21,35.21,35.21]},{ x:'04/20/2023',y:[35.19,35.19,35.19,35.19]},{ x:'04/21/2023',y:[35.32,35.32,35.32,35.32]},{ x:'04/24/2023',y:[35.35,35.35,35.35,35.35]},{ x:'04/25/2023',y:[35.58,35.75,35.58,35.75]},{ x:'04/26/2023',y:[35.94,35.94,35.94,35.94]},{ x:'04/27/2023',y:[35.66,35.68,35.66,35.67]},{ x:'04/28/2023',y:[35.53,35.59,35.53,35.59]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00777b 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());