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:[18.27,18.92,18.27,18.91]},{ x:'01/23/2024',y:[18.78,18.86,18.21,18.35]},{ x:'01/24/2024',y:[18.12,18.30,17.87,18.30]},{ x:'01/25/2024',y:[17.47,17.76,17.29,17.29]},{ x:'01/26/2024',y:[17.43,17.54,17.30,17.49]},{ x:'01/29/2024',y:[17.48,17.50,17.23,17.50]},{ x:'01/30/2024',y:[17.58,17.88,17.58,17.82]},{ x:'01/31/2024',y:[17.85,18.12,17.81,18.12]},{ x:'02/01/2024',y:[17.97,18.21,17.78,17.97]},{ x:'02/02/2024',y:[17.98,18.06,17.62,17.97]},{ x:'02/05/2024',y:[18.15,18.42,17.86,17.90]},{ x:'02/15/2024',y:[17.61,17.69,17.36,17.50]},{ x:'02/16/2024',y:[17.37,17.45,16.93,16.94]},{ x:'02/19/2024',y:[16.90,17.21,16.90,17.19]},{ x:'02/20/2024',y:[17.17,17.32,17.01,17.31]},{ x:'02/21/2024',y:[17.11,17.11,16.42,16.48]},{ x:'02/22/2024',y:[16.75,16.80,16.53,16.53]},{ x:'02/23/2024',y:[16.35,16.50,16.19,16.41]},{ x:'02/26/2024',y:[16.43,16.52,16.33,16.46]},{ x:'02/27/2024',y:[16.48,16.66,16.41,16.47]},{ x:'02/29/2024',y:[16.63,16.75,16.49,16.65]},{ x:'03/01/2024',y:[16.78,16.92,16.47,16.54]},{ x:'03/04/2024',y:[16.47,16.66,16.45,16.55]},{ x:'03/05/2024',y:[16.78,16.95,16.71,16.92]},{ x:'03/06/2024',y:[16.94,16.98,16.50,16.65]},{ x:'03/07/2024',y:[16.58,16.69,16.52,16.68]},{ x:'03/08/2024',y:[16.75,16.77,16.49,16.56]},{ x:'03/11/2024',y:[16.56,16.56,16.35,16.42]},{ x:'03/12/2024',y:[16.25,16.29,15.92,15.93]},{ x:'03/13/2024',y:[15.88,15.88,15.75,15.76]},{ x:'03/14/2024',y:[15.85,15.99,15.74,15.99]},{ x:'03/15/2024',y:[16.06,16.38,16.06,16.36]},{ x:'03/18/2024',y:[16.20,16.28,16.08,16.12]},{ x:'03/19/2024',y:[16.26,16.39,16.22,16.34]},{ x:'03/20/2024',y:[16.32,16.36,16.20,16.29]},{ x:'03/21/2024',y:[16.14,16.14,15.88,16.04]},{ x:'03/22/2024',y:[16.19,16.60,16.18,16.53]},{ x:'03/25/2024',y:[16.40,16.44,16.28,16.39]},{ x:'03/26/2024',y:[16.35,16.40,16.25,16.34]},{ x:'03/27/2024',y:[16.33,16.50,16.33,16.45]},{ x:'03/28/2024',y:[16.45,16.50,16.06,16.15]},{ x:'03/29/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/01/2024',y:[16.15,16.15,16.04,16.04]},{ x:'04/02/2024',y:[16.01,16.01,15.82,15.88]},{ x:'04/03/2024',y:[15.85,16.04,15.85,16.04]},{ x:'04/08/2024',y:[16.20,16.30,15.95,16.10]},{ x:'04/09/2024',y:[15.97,16.06,15.86,16.06]},{ x:'04/10/2024',y:[16.06,16.08,15.67,15.71]},{ x:'04/11/2024',y:[15.87,16.07,15.77,15.77]},{ x:'04/12/2024',y:[15.91,16.04,15.90,16.04]},{ x:'04/15/2024',y:[16.35,16.35,16.20,16.23]},{ x:'04/16/2024',y:[16.35,16.56,16.35,16.56]},{ x:'04/17/2024',y:[16.59,16.65,16.56,16.64]},{ x:'04/18/2024',y:[16.59,16.59,16.27,16.39]},{ x:'04/19/2024',y:[16.54,16.74,16.54,16.58]},{ x:'04/22/2024',y:[16.50,16.64,16.18,16.27]},{ x:'04/23/2024',y:[16.22,16.28,16.03,16.05]},{ x:'04/24/2024',y:[16.00,16.00,15.64,15.67]},{ x:'04/25/2024',y:[15.72,15.72,15.40,15.58]},{ x:'04/26/2024',y:[15.52,15.52,15.07,15.07]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00666r 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());