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:[25.52,25.57,25.48,25.57]},{ x:'01/24/2024',y:[25.39,25.43,25.38,25.43]},{ x:'01/25/2024',y:[25.24,25.27,25.16,25.27]},{ x:'01/26/2024',y:[25.33,25.42,25.33,25.42]},{ x:'01/29/2024',y:[25.38,25.38,25.27,25.32]},{ x:'01/30/2024',y:[25.51,25.64,25.49,25.64]},{ x:'01/31/2024',y:[25.70,25.90,25.70,25.90]},{ x:'02/01/2024',y:[26.05,26.20,26.05,26.16]},{ x:'02/02/2024',y:[26.41,26.41,26.27,26.34]},{ x:'02/05/2024',y:[25.95,25.99,25.90,25.95]},{ x:'02/15/2024',y:[25.45,25.48,25.37,25.42]},{ x:'02/16/2024',y:[25.37,25.37,25.26,25.28]},{ x:'02/19/2024',y:[25.27,25.27,25.20,25.23]},{ x:'02/20/2024',y:[25.19,25.23,25.14,25.22]},{ x:'02/21/2024',y:[25.22,25.27,25.20,25.27]},{ x:'02/22/2024',y:[25.14,25.21,25.13,25.17]},{ x:'02/23/2024',y:[25.22,25.25,25.21,25.24]},{ x:'02/26/2024',y:[25.64,25.73,25.64,25.71]},{ x:'02/27/2024',y:[25.60,25.60,25.51,25.57]},{ x:'02/29/2024',y:[25.57,25.58,25.52,25.52]},{ x:'03/01/2024',y:[25.65,25.69,25.62,25.67]},{ x:'03/04/2024',y:[25.83,25.85,25.76,25.80]},{ x:'03/05/2024',y:[25.77,25.81,25.73,25.81]},{ x:'03/06/2024',y:[26.01,26.07,25.97,26.04]},{ x:'03/07/2024',y:[26.19,26.23,26.17,26.22]},{ x:'03/08/2024',y:[26.25,26.25,26.15,26.23]},{ x:'03/11/2024',y:[26.20,26.23,26.17,26.23]},{ x:'03/12/2024',y:[26.16,26.17,26.10,26.16]},{ x:'03/13/2024',y:[26.00,26.01,25.93,25.96]},{ x:'03/14/2024',y:[25.86,25.87,25.79,25.82]},{ x:'03/15/2024',y:[25.59,25.63,25.52,25.62]},{ x:'03/18/2024',y:[25.58,25.66,25.58,25.61]},{ x:'03/19/2024',y:[25.60,25.72,25.58,25.71]},{ x:'03/20/2024',y:[25.86,25.90,25.80,25.90]},{ x:'03/21/2024',y:[25.56,25.56,25.45,25.54]},{ x:'03/22/2024',y:[25.60,25.76,25.60,25.75]},{ x:'03/25/2024',y:[25.85,25.95,25.75,25.78]},{ x:'03/26/2024',y:[25.75,25.75,25.69,25.71]},{ x:'03/27/2024',y:[25.75,25.82,25.75,25.79]},{ x:'03/28/2024',y:[25.92,25.94,25.90,25.91]},{ x:'03/29/2024',y:[25.95,25.95,25.91,25.94]},{ x:'04/01/2024',y:[25.94,25.94,25.86,25.91]},{ x:'04/02/2024',y:[25.66,25.71,25.61,25.68]},{ x:'04/03/2024',y:[25.65,25.65,25.56,25.59]},{ x:'04/08/2024',y:[25.46,25.47,25.34,25.39]},{ x:'04/09/2024',y:[25.39,25.52,25.39,25.46]},{ x:'04/10/2024',y:[25.55,25.55,25.49,25.50]},{ x:'04/11/2024',y:[25.26,25.30,25.14,25.22]},{ x:'04/12/2024',y:[25.16,25.20,25.11,25.18]},{ x:'04/15/2024',y:[25.19,25.25,25.15,25.20]},{ x:'04/16/2024',y:[25.15,25.17,25.11,25.11]},{ x:'04/17/2024',y:[24.71,24.71,24.60,24.62]},{ x:'04/18/2024',y:[24.78,24.85,24.75,24.77]},{ x:'04/19/2024',y:[24.76,25.23,24.74,25.00]},{ x:'04/22/2024',y:[24.84,24.84,24.75,24.79]},{ x:'04/23/2024',y:[24.90,24.94,24.86,24.91]},{ x:'04/24/2024',y:[24.87,24.87,24.74,24.80]},{ x:'04/25/2024',y:[24.70,24.73,24.67,24.68]},{ x:'04/26/2024',y:[24.56,24.58,24.53,24.57]},{ x:'04/29/2024',y:[24.70,24.77,24.70,24.73]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00857b 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());