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:'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]},{ x:'05/16/2023',y:[17.02,17.15,17.02,17.12]},{ x:'05/17/2023',y:[17.12,17.21,17.12,17.19]},{ x:'05/18/2023',y:[17.30,17.40,17.30,17.35]},{ x:'05/19/2023',y:[17.40,17.55,17.40,17.51]},{ x:'05/22/2023',y:[17.55,17.55,17.50,17.50]},{ x:'05/23/2023',y:[17.50,17.55,17.44,17.53]},{ x:'05/24/2023',y:[17.53,17.58,17.44,17.57]},{ x:'05/25/2023',y:[17.73,17.82,17.72,17.79]},{ x:'05/26/2023',y:[17.85,18.21,17.83,18.08]},{ x:'05/29/2023',y:[18.23,18.36,18.23,18.34]},{ x:'05/30/2023',y:[18.35,18.35,18.20,18.23]},{ x:'05/31/2023',y:[18.26,18.34,18.21,18.26]},{ x:'06/01/2023',y:[18.22,18.25,18.12,18.25]},{ x:'06/02/2023',y:[18.37,18.75,18.37,18.59]},{ x:'06/05/2023',y:[18.55,18.67,18.48,18.60]},{ x:'06/06/2023',y:[18.60,18.67,18.53,18.62]},{ x:'06/07/2023',y:[18.69,18.87,18.69,18.87]},{ x:'06/08/2023',y:[18.83,18.90,18.76,18.82]},{ x:'06/09/2023',y:[18.96,19.23,18.96,19.23]},{ x:'06/12/2023',y:[19.31,19.31,19.07,19.15]},{ x:'06/13/2023',y:[19.33,19.47,19.30,19.42]} ] }], 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());