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:[15.27,15.31,15.24,15.29]},{ x:'01/24/2024',y:[15.31,15.34,15.26,15.28]},{ x:'01/25/2024',y:[15.36,15.41,15.33,15.40]},{ x:'01/26/2024',y:[15.37,15.39,15.30,15.32]},{ x:'01/29/2024',y:[15.35,15.44,15.32,15.43]},{ x:'01/30/2024',y:[15.43,15.51,15.43,15.47]},{ x:'01/31/2024',y:[15.39,15.40,15.32,15.33]},{ x:'02/01/2024',y:[15.29,15.30,15.21,15.29]},{ x:'02/02/2024',y:[15.36,15.43,15.36,15.42]},{ x:'02/05/2024',y:[15.40,15.45,15.36,15.44]},{ x:'02/15/2024',y:[15.87,16.09,15.87,16.03]},{ x:'02/16/2024',y:[16.03,16.04,15.91,15.91]},{ x:'02/19/2024',y:[15.89,15.92,15.86,15.92]},{ x:'02/20/2024',y:[15.88,16.04,15.88,16.00]},{ x:'02/21/2024',y:[15.99,16.00,15.92,15.92]},{ x:'02/22/2024',y:[16.14,16.16,16.07,16.15]},{ x:'02/23/2024',y:[16.30,16.40,16.25,16.30]},{ x:'02/26/2024',y:[16.26,16.41,16.23,16.40]},{ x:'02/27/2024',y:[16.40,16.44,16.18,16.29]},{ x:'02/29/2024',y:[16.22,16.39,16.22,16.34]},{ x:'03/01/2024',y:[16.42,16.46,16.35,16.36]},{ x:'03/04/2024',y:[16.55,16.77,16.55,16.73]},{ x:'03/05/2024',y:[16.77,16.92,16.76,16.90]},{ x:'03/06/2024',y:[16.78,17.04,16.72,17.01]},{ x:'03/07/2024',y:[17.25,17.39,17.19,17.35]},{ x:'03/08/2024',y:[17.70,17.73,17.27,17.44]},{ x:'03/11/2024',y:[17.42,17.48,17.29,17.33]},{ x:'03/12/2024',y:[17.32,17.55,17.32,17.55]},{ x:'03/13/2024',y:[17.70,17.75,17.55,17.58]},{ x:'03/14/2024',y:[17.54,17.54,17.35,17.38]},{ x:'03/15/2024',y:[17.32,17.45,17.32,17.36]},{ x:'03/18/2024',y:[17.36,17.59,17.36,17.59]},{ x:'03/19/2024',y:[17.52,17.68,17.45,17.68]},{ x:'03/20/2024',y:[17.73,17.80,17.60,17.62]},{ x:'03/21/2024',y:[17.84,18.02,17.84,18.00]},{ x:'03/22/2024',y:[18.01,18.05,17.87,18.00]},{ x:'03/25/2024',y:[17.98,18.04,17.91,18.00]},{ x:'03/26/2024',y:[18.08,18.17,17.72,17.87]},{ x:'03/27/2024',y:[17.85,17.99,17.85,17.93]},{ x:'03/28/2024',y:[17.93,18.03,17.82,18.02]},{ x:'03/29/2024',y:[18.03,18.08,17.97,18.03]},{ x:'04/01/2024',y:[18.10,18.18,17.98,17.98]},{ x:'04/02/2024',y:[18.04,18.27,18.04,18.26]},{ x:'04/03/2024',y:[18.19,18.20,18.07,18.18]},{ x:'04/08/2024',y:[18.18,18.29,18.15,18.25]},{ x:'04/09/2024',y:[18.26,18.54,18.26,18.48]},{ x:'04/10/2024',y:[18.49,18.59,18.48,18.52]},{ x:'04/11/2024',y:[18.42,18.42,18.32,18.38]},{ x:'04/12/2024',y:[18.38,18.49,18.37,18.40]},{ x:'04/15/2024',y:[18.26,18.26,18.01,18.06]},{ x:'04/16/2024',y:[17.80,17.80,17.35,17.49]},{ x:'04/17/2024',y:[17.56,17.74,17.53,17.73]},{ x:'04/18/2024',y:[17.64,17.81,17.57,17.81]},{ x:'04/19/2024',y:[17.42,17.42,16.76,16.98]},{ x:'04/22/2024',y:[16.88,17.02,16.77,16.81]},{ x:'04/23/2024',y:[17.04,17.06,16.86,16.97]},{ x:'04/24/2024',y:[17.29,17.62,17.29,17.62]},{ x:'04/25/2024',y:[17.39,17.40,17.26,17.27]},{ x:'04/26/2024',y:[17.56,17.68,17.54,17.61]},{ x:'04/29/2024',y:[17.84,17.94,17.78,17.84]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());