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:[18.58,18.71,18.38,18.71]},{ x:'01/24/2024',y:[18.96,18.99,18.65,18.68]},{ x:'01/25/2024',y:[19.21,19.43,19.04,19.39]},{ x:'01/26/2024',y:[19.45,19.49,19.26,19.29]},{ x:'01/29/2024',y:[19.30,19.49,19.20,19.24]},{ x:'01/30/2024',y:[19.11,19.11,18.81,18.83]},{ x:'01/31/2024',y:[18.75,18.75,18.53,18.68]},{ x:'02/01/2024',y:[18.59,18.81,18.50,18.66]},{ x:'02/02/2024',y:[18.60,18.60,18.25,18.28]},{ x:'02/05/2024',y:[18.69,18.69,17.84,18.39]},{ x:'02/15/2024',y:[18.51,19.33,18.51,19.31]},{ x:'02/16/2024',y:[19.31,19.67,19.31,19.67]},{ x:'02/19/2024',y:[19.72,19.82,19.50,19.55]},{ x:'02/20/2024',y:[19.71,19.72,19.63,19.63]},{ x:'02/21/2024',y:[19.77,20.25,19.77,20.22]},{ x:'02/22/2024',y:[20.22,20.22,19.97,20.15]},{ x:'02/23/2024',y:[20.21,20.26,20.15,20.16]},{ x:'02/26/2024',y:[20.16,20.22,19.99,20.14]},{ x:'02/27/2024',y:[20.00,20.18,19.95,20.18]},{ x:'02/29/2024',y:[20.10,20.44,19.96,20.28]},{ x:'03/01/2024',y:[20.33,20.46,20.33,20.41]},{ x:'03/04/2024',y:[20.50,20.50,20.34,20.38]},{ x:'03/05/2024',y:[20.30,20.57,20.30,20.53]},{ x:'03/06/2024',y:[20.53,20.71,20.53,20.63]},{ x:'03/07/2024',y:[20.60,20.63,20.41,20.41]},{ x:'03/08/2024',y:[20.41,20.44,20.30,20.39]},{ x:'03/11/2024',y:[20.40,20.71,20.40,20.59]},{ x:'03/12/2024',y:[20.75,20.91,20.71,20.86]},{ x:'03/13/2024',y:[20.86,20.86,20.66,20.72]},{ x:'03/14/2024',y:[20.67,20.80,20.65,20.65]},{ x:'03/15/2024',y:[20.63,20.63,20.54,20.59]},{ x:'03/18/2024',y:[20.60,20.97,20.60,20.90]},{ x:'03/19/2024',y:[20.98,21.07,20.98,21.00]},{ x:'03/20/2024',y:[20.90,21.03,20.90,21.03]},{ x:'03/21/2024',y:[21.05,21.06,20.97,20.97]},{ x:'03/22/2024',y:[20.97,20.97,20.56,20.72]},{ x:'03/25/2024',y:[20.70,20.78,20.68,20.78]},{ x:'03/26/2024',y:[20.60,20.72,20.54,20.61]},{ x:'03/27/2024',y:[20.61,20.61,20.55,20.60]},{ x:'03/28/2024',y:[20.50,20.72,20.37,20.67]},{ x:'03/29/2024',y:[20.64,20.66,20.55,20.58]},{ x:'04/01/2024',y:[20.91,21.08,20.91,21.01]},{ x:'04/02/2024',y:[21.03,21.03,20.94,20.94]},{ x:'04/03/2024',y:[21.03,21.03,20.87,20.92]},{ x:'04/08/2024',y:[20.92,20.96,20.85,20.90]},{ x:'04/09/2024',y:[20.95,20.95,20.72,20.75]},{ x:'04/10/2024',y:[20.77,20.77,20.65,20.65]},{ x:'04/11/2024',y:[20.62,20.74,20.50,20.74]},{ x:'04/12/2024',y:[20.74,20.74,20.70,20.72]},{ x:'04/15/2024',y:[20.54,21.06,20.54,21.03]},{ x:'04/16/2024',y:[21.03,21.08,20.87,21.03]},{ x:'04/17/2024',y:[20.93,21.01,20.91,20.97]},{ x:'04/18/2024',y:[21.07,21.33,21.07,21.27]},{ x:'04/19/2024',y:[21.15,21.20,21.08,21.15]},{ x:'04/22/2024',y:[21.09,21.23,21.09,21.18]},{ x:'04/23/2024',y:[21.25,21.25,20.95,20.98]},{ x:'04/24/2024',y:[21.00,21.00,20.86,20.90]},{ x:'04/25/2024',y:[20.91,21.05,20.91,21.02]},{ x:'04/26/2024',y:[21.02,21.33,21.02,21.33]},{ x:'04/29/2024',y:[21.39,21.75,21.39,21.72]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00739 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());