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:'05/16/2023',y:[16.96,16.97,16.96,16.96]},{ x:'05/17/2023',y:[16.92,16.92,16.84,16.84]},{ x:'05/18/2023',y:[16.82,16.82,16.79,16.81]},{ x:'05/19/2023',y:[16.64,16.67,16.63,16.65]},{ x:'05/22/2023',y:[16.65,16.66,16.60,16.66]},{ x:'05/23/2023',y:[16.70,16.82,16.70,16.76]},{ x:'05/24/2023',y:[16.70,16.70,16.67,16.68]},{ x:'05/25/2023',y:[16.60,16.60,16.49,16.49]},{ x:'05/26/2023',y:[16.44,16.46,16.42,16.45]},{ x:'05/29/2023',y:[16.45,16.46,16.43,16.44]},{ x:'05/30/2023',y:[16.42,16.42,16.40,16.42]},{ x:'05/31/2023',y:[16.53,16.54,16.52,16.52]},{ x:'06/01/2023',y:[16.50,16.50,16.43,16.48]},{ x:'06/02/2023',y:[16.66,16.74,16.66,16.74]},{ x:'06/05/2023',y:[16.78,16.78,16.76,16.77]},{ x:'06/06/2023',y:[16.75,16.78,16.75,16.78]},{ x:'06/07/2023',y:[16.80,16.87,16.80,16.87]},{ x:'06/08/2023',y:[16.86,16.86,16.78,16.79]},{ x:'06/09/2023',y:[16.79,16.87,16.79,16.85]},{ x:'06/12/2023',y:[16.87,16.88,16.87,16.87]},{ x:'06/13/2023',y:[16.99,17.09,16.99,17.08]},{ x:'06/14/2023',y:[17.13,17.13,17.03,17.04]},{ x:'06/15/2023',y:[17.09,17.10,17.07,17.08]},{ x:'06/16/2023',y:[17.10,17.17,17.10,17.15]},{ x:'06/19/2023',y:[17.10,17.15,17.10,17.13]},{ x:'06/20/2023',y:[17.11,17.11,16.99,17.03]},{ x:'06/21/2023',y:[17.00,17.02,16.99,16.99]},{ x:'06/26/2023',y:[16.70,16.70,16.36,16.37]},{ x:'06/27/2023',y:[16.36,16.39,16.36,16.38]},{ x:'06/28/2023',y:[16.51,16.51,16.45,16.47]},{ x:'06/29/2023',y:[16.60,16.61,16.57,16.58]},{ x:'06/30/2023',y:[16.50,16.55,16.49,16.52]},{ x:'07/03/2023',y:[16.79,16.95,16.79,16.93]},{ x:'07/04/2023',y:[17.10,17.10,17.01,17.03]},{ x:'07/05/2023',y:[17.03,17.03,17.02,17.02]},{ x:'07/06/2023',y:[16.79,16.79,16.70,16.72]},{ x:'07/07/2023',y:[16.59,16.59,16.50,16.50]},{ x:'07/10/2023',y:[16.52,16.55,16.50,16.53]},{ x:'07/11/2023',y:[16.70,16.72,16.68,16.70]},{ x:'07/12/2023',y:[16.73,16.75,16.73,16.75]},{ x:'07/13/2023',y:[17.00,17.13,17.00,17.11]},{ x:'07/14/2023',y:[17.20,17.26,17.20,17.25]},{ x:'07/17/2023',y:[17.20,17.20,17.08,17.12]},{ x:'07/18/2023',y:[17.28,17.44,17.28,17.35]},{ x:'07/19/2023',y:[17.35,17.35,17.27,17.30]},{ x:'07/20/2023',y:[17.30,17.32,17.30,17.31]},{ x:'07/21/2023',y:[17.19,17.22,17.15,17.22]},{ x:'07/24/2023',y:[17.29,17.34,17.29,17.32]},{ x:'07/25/2023',y:[17.33,17.35,17.31,17.31]},{ x:'07/26/2023',y:[17.33,17.35,17.30,17.30]},{ x:'07/27/2023',y:[17.25,17.25,17.15,17.15]},{ x:'07/28/2023',y:[16.85,16.87,16.77,16.87]},{ x:'07/31/2023',y:[16.80,16.87,16.80,16.85]},{ x:'08/01/2023',y:[16.81,16.95,16.81,16.94]},{ x:'08/02/2023',y:[16.86,16.86,16.62,16.64]},{ x:'08/04/2023',y:[16.50,16.50,16.20,16.21]},{ x:'08/07/2023',y:[16.18,16.18,16.11,16.14]},{ x:'08/08/2023',y:[16.10,16.10,16.01,16.02]},{ x:'08/09/2023',y:[16.07,16.13,16.06,16.10]},{ x:'08/10/2023',y:[16.14,16.16,16.14,16.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00920 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());