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:'02/13/2023',y:[16.19,16.19,16.00,16.10]},{ x:'02/14/2023',y:[16.28,16.29,16.20,16.29]},{ x:'02/15/2023',y:[16.29,16.29,16.14,16.17]},{ x:'02/16/2023',y:[16.17,16.33,16.17,16.33]},{ x:'02/17/2023',y:[16.28,16.30,16.22,16.27]},{ x:'02/20/2023',y:[16.30,16.41,16.30,16.38]},{ x:'02/21/2023',y:[16.38,16.56,16.37,16.53]},{ x:'02/22/2023',y:[16.45,16.48,16.37,16.42]},{ x:'02/23/2023',y:[16.43,16.66,16.43,16.64]},{ x:'02/24/2023',y:[16.65,16.80,16.57,16.57]},{ x:'03/01/2023',y:[16.55,16.55,16.34,16.53]},{ x:'03/02/2023',y:[16.63,16.63,16.45,16.62]},{ x:'03/03/2023',y:[16.65,16.69,16.63,16.69]},{ x:'03/06/2023',y:[16.72,16.87,16.72,16.87]},{ x:'03/07/2023',y:[16.87,17.00,16.84,16.99]},{ x:'03/08/2023',y:[16.99,16.99,16.81,16.94]},{ x:'03/09/2023',y:[17.99,17.99,17.01,17.02]},{ x:'03/10/2023',y:[16.90,16.95,16.82,16.84]},{ x:'03/13/2023',y:[16.80,16.85,16.62,16.82]},{ x:'03/14/2023',y:[16.78,16.78,16.54,16.59]},{ x:'03/15/2023',y:[16.61,16.81,16.59,16.59]},{ x:'03/16/2023',y:[16.53,16.55,16.44,16.45]},{ x:'03/17/2023',y:[16.50,16.78,16.36,16.71]},{ x:'03/20/2023',y:[16.75,16.78,16.66,16.66]},{ x:'03/21/2023',y:[16.75,16.76,16.70,16.73]},{ x:'03/22/2023',y:[16.75,16.84,16.75,16.84]},{ x:'03/23/2023',y:[16.84,16.90,16.77,16.88]},{ x:'03/24/2023',y:[16.88,16.96,16.88,16.96]},{ x:'03/27/2023',y:[16.97,17.00,16.94,16.96]},{ x:'03/28/2023',y:[16.96,16.96,16.78,16.81]},{ x:'03/29/2023',y:[16.81,16.83,16.73,16.76]},{ x:'03/30/2023',y:[16.80,16.94,16.80,16.92]},{ x:'03/31/2023',y:[16.96,17.09,16.96,17.01]},{ x:'04/06/2023',y:[17.07,17.07,16.90,16.98]},{ x:'04/07/2023',y:[17.03,17.08,17.02,17.04]},{ x:'04/10/2023',y:[17.14,17.14,17.07,17.13]},{ x:'04/11/2023',y:[17.20,17.28,17.14,17.26]},{ x:'04/12/2023',y:[17.34,17.37,17.32,17.34]},{ x:'04/13/2023',y:[17.44,17.44,17.21,17.22]},{ x:'04/14/2023',y:[17.23,17.34,17.23,17.33]},{ x:'04/17/2023',y:[17.37,17.42,17.35,17.40]},{ x:'04/18/2023',y:[17.40,17.40,17.26,17.28]},{ x:'04/19/2023',y:[17.32,17.41,17.30,17.31]},{ x:'04/20/2023',y:[17.31,17.31,17.18,17.22]},{ x:'04/21/2023',y:[17.22,17.22,17.00,17.02]},{ x:'04/24/2023',y:[17.02,17.09,16.92,17.01]},{ x:'04/25/2023',y:[17.01,17.01,16.66,16.68]},{ x:'04/26/2023',y:[16.68,16.70,16.53,16.65]},{ x:'04/27/2023',y:[16.65,16.83,16.65,16.77]},{ x:'04/28/2023',y:[16.97,17.00,16.91,16.96]},{ x:'05/02/2023',y:[17.09,17.13,17.00,17.11]},{ x:'05/03/2023',y:[17.06,17.06,16.96,17.01]},{ x:'05/04/2023',y:[17.00,17.06,16.94,17.06]},{ x:'05/05/2023',y:[17.07,17.08,16.99,17.01]},{ x:'05/08/2023',y:[17.05,17.12,17.03,17.03]},{ x:'05/09/2023',y:[17.04,17.07,16.98,17.04]},{ x:'05/10/2023',y:[17.04,17.08,17.00,17.03]},{ x:'05/11/2023',y:[17.04,17.04,16.85,16.85]},{ x:'05/12/2023',y:[16.89,17.00,16.78,16.99]},{ x:'05/15/2023',y:[16.99,16.99,16.90,16.95]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00918 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());