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.57,15.62,15.54,15.58]},{ x:'01/23/2024',y:[15.53,15.58,15.26,15.48]},{ x:'01/24/2024',y:[15.60,15.69,15.44,15.47]},{ x:'01/25/2024',y:[15.72,16.02,15.72,16.00]},{ x:'01/26/2024',y:[16.03,16.13,15.90,15.96]},{ x:'01/29/2024',y:[16.00,16.05,15.80,15.92]},{ x:'01/30/2024',y:[15.86,15.87,15.56,15.59]},{ x:'01/31/2024',y:[15.49,15.59,15.38,15.48]},{ x:'02/01/2024',y:[15.47,15.60,15.34,15.53]},{ x:'02/02/2024',y:[15.57,15.57,15.29,15.31]},{ x:'02/05/2024',y:[15.31,15.40,15.01,15.37]},{ x:'02/15/2024',y:[15.81,15.92,15.67,15.86]},{ x:'02/16/2024',y:[15.91,16.12,15.89,16.12]},{ x:'02/19/2024',y:[16.23,16.26,16.11,16.13]},{ x:'02/20/2024',y:[16.16,16.21,16.12,16.12]},{ x:'02/21/2024',y:[16.24,16.67,16.20,16.67]},{ x:'02/22/2024',y:[16.65,16.66,16.47,16.61]},{ x:'02/23/2024',y:[16.61,16.73,16.60,16.64]},{ x:'02/26/2024',y:[16.70,16.80,16.48,16.51]},{ x:'02/27/2024',y:[16.58,16.61,16.45,16.56]},{ x:'02/29/2024',y:[16.50,16.73,16.42,16.69]},{ x:'03/01/2024',y:[16.79,16.79,16.63,16.73]},{ x:'03/04/2024',y:[16.75,16.79,16.68,16.70]},{ x:'03/05/2024',y:[16.74,16.88,16.70,16.84]},{ x:'03/06/2024',y:[16.84,16.96,16.83,16.89]},{ x:'03/07/2024',y:[16.97,16.97,16.72,16.72]},{ x:'03/08/2024',y:[16.68,16.75,16.59,16.66]},{ x:'03/11/2024',y:[16.66,16.99,16.66,16.85]},{ x:'03/12/2024',y:[16.97,17.11,16.97,17.07]},{ x:'03/13/2024',y:[17.08,17.10,16.93,17.04]},{ x:'03/14/2024',y:[16.99,17.06,16.88,16.88]},{ x:'03/15/2024',y:[16.86,16.93,16.79,16.80]},{ x:'03/18/2024',y:[16.84,17.10,16.84,17.07]},{ x:'03/19/2024',y:[17.19,17.19,17.08,17.10]},{ x:'03/20/2024',y:[17.06,17.15,17.04,17.14]},{ x:'03/21/2024',y:[17.13,17.20,17.07,17.11]},{ x:'03/22/2024',y:[17.11,17.12,16.85,16.87]},{ x:'03/25/2024',y:[16.87,16.99,16.86,16.96]},{ x:'03/26/2024',y:[16.88,16.89,16.80,16.80]},{ x:'03/27/2024',y:[16.81,16.92,16.81,16.86]},{ x:'03/28/2024',y:[16.82,16.97,16.71,16.93]},{ x:'03/29/2024',y:[16.92,16.92,16.87,16.89]},{ x:'04/01/2024',y:[16.90,17.22,16.90,17.19]},{ x:'04/02/2024',y:[17.19,17.25,17.11,17.13]},{ x:'04/03/2024',y:[17.23,17.23,17.04,17.04]},{ x:'04/08/2024',y:[17.04,17.07,16.94,17.02]},{ x:'04/09/2024',y:[17.02,17.05,16.92,16.94]},{ x:'04/10/2024',y:[16.95,16.96,16.77,16.77]},{ x:'04/11/2024',y:[16.77,16.89,16.75,16.86]},{ x:'04/12/2024',y:[16.91,16.91,16.78,16.87]},{ x:'04/15/2024',y:[16.75,17.10,16.70,17.07]},{ x:'04/16/2024',y:[17.07,17.14,16.91,17.09]},{ x:'04/17/2024',y:[17.08,17.11,17.00,17.10]},{ x:'04/18/2024',y:[17.21,17.39,17.19,17.23]},{ x:'04/19/2024',y:[17.30,17.30,17.06,17.21]},{ x:'04/22/2024',y:[17.25,17.26,17.12,17.17]},{ x:'04/23/2024',y:[17.18,17.18,17.03,17.03]},{ x:'04/24/2024',y:[17.09,17.11,17.00,17.08]},{ x:'04/25/2024',y:[17.09,17.19,17.03,17.11]},{ x:'04/26/2024',y:[17.12,17.36,17.09,17.36]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0061 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());