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:[16.97,16.97,16.91,16.93]},{ x:'01/23/2024',y:[16.99,17.02,16.97,17.01]},{ x:'01/24/2024',y:[17.09,17.11,17.05,17.06]},{ x:'01/25/2024',y:[17.13,17.13,17.09,17.12]},{ x:'01/26/2024',y:[17.21,17.22,17.19,17.20]},{ x:'01/29/2024',y:[17.20,17.20,17.18,17.18]},{ x:'01/30/2024',y:[17.24,17.24,17.20,17.20]},{ x:'01/31/2024',y:[17.39,17.44,17.39,17.43]},{ x:'02/01/2024',y:[17.34,17.34,17.31,17.31]},{ x:'02/02/2024',y:[17.29,17.29,17.25,17.27]},{ x:'02/05/2024',y:[17.31,17.31,17.28,17.28]},{ x:'02/15/2024',y:[17.29,17.29,17.26,17.26]},{ x:'02/16/2024',y:[17.41,17.45,17.41,17.44]},{ x:'02/19/2024',y:[17.44,17.47,17.43,17.43]},{ x:'02/20/2024',y:[17.45,17.47,17.42,17.42]},{ x:'02/21/2024',y:[17.46,17.51,17.46,17.51]},{ x:'02/22/2024',y:[17.51,17.51,17.50,17.51]},{ x:'02/23/2024',y:[17.64,17.70,17.64,17.70]},{ x:'02/26/2024',y:[17.77,17.79,17.75,17.75]},{ x:'02/27/2024',y:[17.74,17.74,17.71,17.72]},{ x:'02/29/2024',y:[17.79,17.84,17.79,17.81]},{ x:'03/01/2024',y:[17.89,17.90,17.87,17.87]},{ x:'03/04/2024',y:[17.86,17.86,17.83,17.83]},{ x:'03/05/2024',y:[17.97,17.99,17.93,17.94]},{ x:'03/06/2024',y:[17.98,18.02,17.98,18.01]},{ x:'03/07/2024',y:[18.07,18.07,17.98,18.02]},{ x:'03/08/2024',y:[18.10,18.10,18.04,18.06]},{ x:'03/11/2024',y:[18.02,18.04,18.02,18.02]},{ x:'03/12/2024',y:[18.16,18.16,18.08,18.11]},{ x:'03/13/2024',y:[18.15,18.19,18.15,18.17]},{ x:'03/14/2024',y:[18.17,18.23,18.17,18.20]},{ x:'03/15/2024',y:[17.96,18.06,17.96,18.05]},{ x:'03/18/2024',y:[18.06,18.10,18.06,18.08]},{ x:'03/19/2024',y:[18.18,18.20,18.17,18.18]},{ x:'03/20/2024',y:[18.27,18.31,18.27,18.30]},{ x:'03/21/2024',y:[18.51,18.54,18.51,18.53]},{ x:'03/22/2024',y:[18.92,18.96,18.92,18.92]},{ x:'03/25/2024',y:[18.74,18.74,18.62,18.64]},{ x:'03/26/2024',y:[18.61,18.67,18.56,18.65]},{ x:'03/27/2024',y:[18.71,18.77,18.70,18.74]},{ x:'03/28/2024',y:[18.91,18.94,18.91,18.92]},{ x:'03/29/2024',y:[18.92,18.97,18.92,18.96]},{ x:'04/01/2024',y:[19.00,19.07,19.00,19.07]},{ x:'04/02/2024',y:[18.91,19.13,18.91,18.94]},{ x:'04/03/2024',y:[18.81,18.84,18.79,18.79]},{ x:'04/08/2024',y:[18.82,18.86,18.81,18.81]},{ x:'04/09/2024',y:[18.96,18.98,18.94,18.94]},{ x:'04/10/2024',y:[18.96,18.97,18.93,18.97]},{ x:'04/11/2024',y:[18.69,18.73,18.67,18.72]},{ x:'04/12/2024',y:[18.65,18.65,18.60,18.61]},{ x:'04/15/2024',y:[18.36,18.37,18.31,18.35]},{ x:'04/16/2024',y:[18.38,18.38,18.32,18.34]},{ x:'04/17/2024',y:[18.16,18.19,18.15,18.15]},{ x:'04/18/2024',y:[18.16,18.20,18.15,18.18]},{ x:'04/19/2024',y:[18.22,18.24,18.12,18.15]},{ x:'04/22/2024',y:[18.41,18.55,18.41,18.53]},{ x:'04/23/2024',y:[18.77,18.84,18.77,18.83]},{ x:'04/24/2024',y:[18.93,18.94,18.91,18.93]},{ x:'04/25/2024',y:[18.93,18.96,18.89,18.95]},{ x:'04/26/2024',y:[18.88,18.90,18.84,18.87]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00917 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());