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.04,15.14,14.59,14.60]},{ x:'01/23/2024',y:[14.60,15.12,14.60,15.00]},{ x:'01/24/2024',y:[15.25,15.43,15.12,15.18]},{ x:'01/25/2024',y:[15.66,15.93,15.52,15.93]},{ x:'01/26/2024',y:[15.84,15.87,15.65,15.70]},{ x:'01/29/2024',y:[15.63,15.80,15.54,15.54]},{ x:'01/30/2024',y:[15.46,15.46,15.07,15.18]},{ x:'01/31/2024',y:[15.07,15.14,14.90,14.92]},{ x:'02/01/2024',y:[14.98,15.29,14.87,15.17]},{ x:'02/02/2024',y:[15.15,15.34,15.03,15.04]},{ x:'02/05/2024',y:[14.98,15.19,14.85,15.15]},{ x:'02/15/2024',y:[15.40,15.65,15.40,15.53]},{ x:'02/16/2024',y:[15.58,15.89,15.50,15.87]},{ x:'02/19/2024',y:[15.90,15.96,15.71,15.74]},{ x:'02/20/2024',y:[15.74,15.87,15.62,15.68]},{ x:'02/21/2024',y:[15.75,16.30,15.71,16.26]},{ x:'02/22/2024',y:[16.10,16.18,16.00,16.18]},{ x:'02/23/2024',y:[16.20,16.51,16.20,16.36]},{ x:'02/26/2024',y:[16.36,16.41,16.23,16.28]},{ x:'02/27/2024',y:[16.28,16.28,16.05,16.22]},{ x:'02/29/2024',y:[16.07,16.23,16.02,16.10]},{ x:'03/01/2024',y:[16.10,16.14,15.90,16.08]},{ x:'03/04/2024',y:[16.06,16.15,15.96,15.99]},{ x:'03/05/2024',y:[15.96,15.96,15.57,15.59]},{ x:'03/06/2024',y:[15.58,15.99,15.46,15.92]},{ x:'03/07/2024',y:[15.93,15.98,15.75,15.75]},{ x:'03/08/2024',y:[15.71,15.86,15.64,15.76]},{ x:'03/11/2024',y:[15.75,16.01,15.67,15.99]},{ x:'03/12/2024',y:[16.03,16.48,16.03,16.46]},{ x:'03/13/2024',y:[16.51,16.65,16.48,16.61]},{ x:'03/14/2024',y:[16.62,16.75,16.46,16.48]},{ x:'03/15/2024',y:[16.42,16.42,16.15,16.15]},{ x:'03/18/2024',y:[16.24,16.47,16.23,16.47]},{ x:'03/19/2024',y:[16.47,16.49,16.33,16.36]},{ x:'03/20/2024',y:[16.37,16.48,16.25,16.40]},{ x:'03/21/2024',y:[16.49,16.79,16.49,16.66]},{ x:'03/22/2024',y:[16.65,16.65,16.18,16.26]},{ x:'03/25/2024',y:[16.28,16.39,16.25,16.29]},{ x:'03/26/2024',y:[16.29,16.39,16.24,16.33]},{ x:'03/27/2024',y:[16.34,16.45,16.27,16.34]},{ x:'03/28/2024',y:[16.34,16.65,16.29,16.57]},{ x:'03/29/2024',y:[16.60,16.60,16.47,16.48]},{ x:'04/01/2024',y:[16.51,16.71,16.51,16.69]},{ x:'04/02/2024',y:[16.71,16.93,16.71,16.84]},{ x:'04/03/2024',y:[16.90,16.90,16.68,16.69]},{ x:'04/08/2024',y:[16.70,16.80,16.55,16.65]},{ x:'04/09/2024',y:[16.61,16.84,16.61,16.76]},{ x:'04/10/2024',y:[16.70,17.15,16.70,17.13]},{ x:'04/11/2024',y:[17.00,17.20,16.85,17.20]},{ x:'04/12/2024',y:[17.18,17.18,17.00,17.06]},{ x:'04/15/2024',y:[16.79,16.83,16.65,16.76]},{ x:'04/16/2024',y:[16.64,16.73,16.53,16.61]},{ x:'04/17/2024',y:[16.48,16.60,16.43,16.48]},{ x:'04/18/2024',y:[16.48,16.72,16.41,16.63]},{ x:'04/19/2024',y:[16.56,16.69,16.35,16.42]},{ x:'04/22/2024',y:[16.42,16.88,16.41,16.83]},{ x:'04/23/2024',y:[16.88,17.19,16.88,17.16]},{ x:'04/24/2024',y:[17.22,17.57,17.22,17.56]},{ x:'04/25/2024',y:[17.58,17.86,17.56,17.67]},{ x:'04/26/2024',y:[17.71,18.10,17.69,18.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00752 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());