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:[15.52,15.63,15.52,15.61]},{ x:'01/23/2024',y:[15.66,15.72,15.66,15.70]},{ x:'01/24/2024',y:[15.71,15.76,15.71,15.71]},{ x:'01/25/2024',y:[15.75,15.79,15.68,15.73]},{ x:'01/26/2024',y:[15.71,15.73,15.64,15.66]},{ x:'01/29/2024',y:[15.68,15.83,15.67,15.82]},{ x:'01/30/2024',y:[15.78,15.83,15.76,15.77]},{ x:'01/31/2024',y:[15.70,15.70,15.66,15.69]},{ x:'02/01/2024',y:[15.69,15.76,15.65,15.75]},{ x:'02/02/2024',y:[15.83,15.89,15.82,15.86]},{ x:'02/05/2024',y:[15.86,15.89,15.76,15.86]},{ x:'02/15/2024',y:[15.93,16.20,15.93,16.13]},{ x:'02/16/2024',y:[16.13,16.25,16.13,16.21]},{ x:'02/19/2024',y:[16.21,16.31,16.21,16.30]},{ x:'02/20/2024',y:[16.30,16.37,16.27,16.34]},{ x:'02/21/2024',y:[16.34,16.34,16.27,16.27]},{ x:'02/22/2024',y:[16.32,16.45,16.32,16.42]},{ x:'02/23/2024',y:[16.50,16.55,16.44,16.46]},{ x:'02/26/2024',y:[16.46,16.48,16.39,16.46]},{ x:'02/27/2024',y:[16.46,16.50,16.27,16.36]},{ x:'02/29/2024',y:[16.36,16.51,16.32,16.51]},{ x:'03/01/2024',y:[16.51,16.58,16.50,16.54]},{ x:'03/04/2024',y:[16.61,16.77,16.61,16.72]},{ x:'03/05/2024',y:[16.73,16.85,16.73,16.85]},{ x:'03/06/2024',y:[16.80,16.93,16.73,16.89]},{ x:'03/07/2024',y:[16.98,17.05,16.89,17.02]},{ x:'03/08/2024',y:[17.13,17.15,16.83,16.92]},{ x:'03/11/2024',y:[16.92,17.00,16.92,16.96]},{ x:'03/12/2024',y:[17.01,17.22,17.01,17.20]},{ x:'03/13/2024',y:[17.31,17.38,17.15,17.18]},{ x:'03/14/2024',y:[17.19,17.21,17.04,17.15]},{ x:'03/15/2024',y:[17.17,17.21,17.12,17.13]},{ x:'03/18/2024',y:[16.89,16.92,16.79,16.92]},{ x:'03/19/2024',y:[16.90,17.01,16.85,16.99]},{ x:'03/20/2024',y:[17.05,17.12,16.94,16.95]},{ x:'03/21/2024',y:[17.05,17.32,17.04,17.29]},{ x:'03/22/2024',y:[17.29,17.35,17.24,17.35]},{ x:'03/25/2024',y:[17.40,17.44,17.32,17.43]},{ x:'03/26/2024',y:[17.45,17.66,17.20,17.37]},{ x:'03/27/2024',y:[17.40,17.40,17.30,17.35]},{ x:'03/28/2024',y:[17.34,17.39,17.28,17.37]},{ x:'03/29/2024',y:[17.37,17.40,17.31,17.35]},{ x:'04/01/2024',y:[17.37,17.45,17.35,17.40]},{ x:'04/02/2024',y:[17.47,17.57,17.45,17.56]},{ x:'04/03/2024',y:[17.52,17.54,17.39,17.48]},{ x:'04/08/2024',y:[17.50,17.67,17.50,17.62]},{ x:'04/09/2024',y:[17.68,17.89,17.68,17.88]},{ x:'04/10/2024',y:[17.88,17.95,17.79,17.79]},{ x:'04/11/2024',y:[17.71,17.71,17.56,17.61]},{ x:'04/12/2024',y:[17.59,17.76,17.58,17.71]},{ x:'04/15/2024',y:[17.70,17.73,17.42,17.44]},{ x:'04/16/2024',y:[17.26,17.26,16.86,16.96]},{ x:'04/17/2024',y:[17.00,17.28,17.00,17.26]},{ x:'04/18/2024',y:[17.23,17.38,17.18,17.34]},{ x:'04/19/2024',y:[17.16,17.16,16.55,16.86]},{ x:'04/22/2024',y:[16.85,16.93,16.65,16.65]},{ x:'04/23/2024',y:[16.77,16.89,16.68,16.75]},{ x:'04/24/2024',y:[16.96,17.14,16.93,17.13]},{ x:'04/25/2024',y:[17.03,17.03,16.87,16.90]},{ x:'04/26/2024',y:[17.02,17.20,17.02,17.09]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00896 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());