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/30/2023',y:[16.24,16.26,16.22,16.26]},{ x:'01/31/2023',y:[15.89,15.89,15.84,15.87]},{ x:'02/01/2023',y:[15.96,16.14,15.96,16.12]},{ x:'02/02/2023',y:[17.05,17.05,16.57,16.65]},{ x:'02/03/2023',y:[16.92,16.93,16.79,16.81]},{ x:'02/06/2023',y:[16.79,16.81,16.72,16.72]},{ x:'02/07/2023',y:[16.74,16.74,16.65,16.65]},{ x:'02/08/2023',y:[17.11,17.35,17.10,17.14]},{ x:'02/09/2023',y:[17.04,17.04,16.88,16.89]},{ x:'02/10/2023',y:[16.86,16.92,16.85,16.85]},{ x:'02/13/2023',y:[16.65,16.76,16.65,16.74]},{ x:'02/14/2023',y:[16.99,17.04,16.97,17.04]},{ x:'02/15/2023',y:[17.20,17.27,17.12,17.16]},{ x:'02/16/2023',y:[17.30,17.54,17.30,17.45]},{ x:'02/17/2023',y:[17.02,17.02,16.93,16.98]},{ x:'02/20/2023',y:[16.63,16.95,16.63,16.95]},{ x:'02/21/2023',y:[16.83,16.84,16.80,16.84]},{ x:'02/22/2023',y:[16.43,16.49,16.41,16.49]},{ x:'02/23/2023',y:[16.63,16.69,16.50,16.69]},{ x:'02/24/2023',y:[16.66,16.83,16.66,16.83]},{ x:'03/01/2023',y:[16.79,16.79,16.57,16.67]},{ x:'03/02/2023',y:[16.69,16.72,16.64,16.72]},{ x:'03/03/2023',y:[16.82,16.88,16.81,16.85]},{ x:'03/06/2023',y:[17.07,17.20,17.05,17.14]},{ x:'03/07/2023',y:[16.94,16.97,16.90,16.96]},{ x:'03/08/2023',y:[16.84,16.84,16.79,16.81]},{ x:'03/09/2023',y:[17.21,17.21,17.14,17.20]},{ x:'03/10/2023',y:[16.61,16.89,16.61,16.83]},{ x:'03/13/2023',y:[16.76,16.85,16.75,16.85]},{ x:'03/14/2023',y:[16.60,16.64,16.60,16.64]},{ x:'03/15/2023',y:[16.77,17.08,16.77,17.02]},{ x:'03/16/2023',y:[16.92,16.94,16.90,16.92]},{ x:'03/17/2023',y:[17.20,17.43,17.20,17.43]},{ x:'03/20/2023',y:[17.37,17.37,17.31,17.33]},{ x:'03/21/2023',y:[17.30,17.47,17.30,17.46]},{ x:'03/22/2023',y:[17.50,17.51,17.50,17.51]},{ x:'03/23/2023',y:[17.36,17.40,17.36,17.40]},{ x:'03/24/2023',y:[17.59,17.68,17.59,17.67]},{ x:'03/27/2023',y:[17.24,17.45,17.24,17.42]},{ x:'03/28/2023',y:[17.30,17.30,17.20,17.20]},{ x:'03/29/2023',y:[17.13,17.17,17.11,17.17]},{ x:'03/30/2023',y:[17.58,17.61,17.54,17.61]},{ x:'03/31/2023',y:[17.90,17.94,17.89,17.90]},{ x:'04/06/2023',y:[17.38,17.54,17.33,17.33]},{ x:'04/07/2023',y:[17.22,17.26,17.17,17.18]},{ x:'04/10/2023',y:[17.08,17.21,17.08,17.19]},{ x:'04/11/2023',y:[17.34,17.39,17.32,17.33]},{ x:'04/12/2023',y:[17.32,17.37,17.32,17.33]},{ x:'04/13/2023',y:[17.08,17.13,17.05,17.13]},{ x:'04/14/2023',y:[17.16,17.16,17.15,17.16]},{ x:'04/17/2023',y:[17.19,17.21,17.05,17.14]},{ x:'04/18/2023',y:[17.00,17.08,17.00,17.06]},{ x:'04/19/2023',y:[17.11,17.20,17.08,17.18]},{ x:'04/20/2023',y:[17.07,17.10,17.06,17.10]},{ x:'04/21/2023',y:[17.16,17.17,17.15,17.17]},{ x:'04/24/2023',y:[17.00,17.00,16.97,16.97]},{ x:'04/25/2023',y:[16.92,16.92,16.90,16.92]},{ x:'04/26/2023',y:[16.59,16.64,16.59,16.63]},{ x:'04/27/2023',y:[16.60,16.61,16.57,16.59]},{ x:'04/28/2023',y:[16.58,16.58,16.54,16.58]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00911 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());