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:'12/09/2022',y:[17.00,17.02,16.99,17.02]},{ x:'12/12/2022',y:[16.99,17.01,16.98,17.00]},{ x:'12/13/2022',y:[17.11,17.12,17.08,17.10]},{ x:'12/14/2022',y:[17.44,17.44,17.32,17.35]},{ x:'12/15/2022',y:[17.55,17.62,17.53,17.54]},{ x:'12/16/2022',y:[17.27,17.27,17.20,17.20]},{ x:'12/19/2022',y:[17.15,17.15,16.93,16.95]},{ x:'12/20/2022',y:[16.86,16.88,16.65,16.65]},{ x:'12/21/2022',y:[16.73,16.76,16.67,16.68]},{ x:'12/22/2022',y:[16.93,16.93,16.87,16.88]},{ x:'12/23/2022',y:[16.56,16.65,16.56,16.64]},{ x:'12/26/2022',y:[16.64,16.64,16.62,16.62]},{ x:'12/27/2022',y:[16.62,16.66,16.62,16.65]},{ x:'12/28/2022',y:[16.33,16.33,16.20,16.21]},{ x:'12/29/2022',y:[16.18,16.18,16.05,16.08]},{ x:'12/30/2022',y:[16.24,16.28,16.23,16.24]},{ x:'01/03/2023',y:[16.24,16.32,16.24,16.28]},{ x:'01/04/2023',y:[16.18,16.18,16.10,16.13]},{ x:'01/05/2023',y:[16.13,16.16,16.06,16.07]},{ x:'01/06/2023',y:[15.95,15.95,15.82,15.84]},{ x:'01/09/2023',y:[16.05,16.05,16.00,16.05]},{ x:'01/10/2023',y:[16.13,16.13,16.00,16.01]},{ x:'01/11/2023',y:[16.30,16.30,16.20,16.20]},{ x:'01/12/2023',y:[16.66,16.68,16.65,16.67]},{ x:'01/13/2023',y:[16.97,16.98,16.86,16.86]},{ x:'01/16/2023',y:[16.92,16.96,16.89,16.94]},{ x:'01/17/2023',y:[16.91,16.91,16.86,16.88]},{ x:'01/30/2023',y:[16.88,16.88,16.42,16.46]},{ x:'01/31/2023',y:[16.49,16.61,16.33,16.33]},{ x:'02/01/2023',y:[16.56,16.60,16.56,16.59]},{ x:'02/02/2023',y:[16.84,16.84,16.74,16.76]},{ x:'02/03/2023',y:[16.76,16.90,16.72,16.73]},{ x:'02/06/2023',y:[16.66,16.66,16.53,16.53]},{ x:'02/07/2023',y:[16.58,16.60,16.57,16.58]},{ x:'02/08/2023',y:[16.69,16.79,16.66,16.79]},{ x:'02/09/2023',y:[16.68,16.68,16.63,16.65]},{ x:'02/10/2023',y:[16.57,16.57,16.44,16.45]},{ x:'02/13/2023',y:[16.42,16.42,16.36,16.38]},{ x:'02/14/2023',y:[16.46,16.51,16.45,16.51]},{ x:'02/15/2023',y:[16.55,16.56,16.50,16.50]},{ x:'02/16/2023',y:[16.80,16.87,16.80,16.83]},{ x:'02/17/2023',y:[16.58,16.58,16.44,16.46]},{ x:'02/20/2023',y:[16.46,16.50,16.46,16.48]},{ x:'02/21/2023',y:[16.48,16.48,16.43,16.45]},{ x:'02/22/2023',y:[16.37,16.37,16.33,16.37]},{ x:'02/23/2023',y:[16.24,16.24,16.22,16.24]},{ x:'02/24/2023',y:[16.21,16.22,16.19,16.20]},{ x:'03/01/2023',y:[16.21,16.30,16.21,16.29]},{ x:'03/02/2023',y:[16.42,16.45,16.39,16.44]},{ x:'03/03/2023',y:[16.52,16.53,16.48,16.51]},{ x:'03/06/2023',y:[16.75,16.81,16.74,16.81]},{ x:'03/07/2023',y:[16.99,17.01,16.95,17.01]},{ x:'03/08/2023',y:[16.91,16.91,16.84,16.85]},{ x:'03/09/2023',y:[16.83,16.83,16.81,16.81]},{ x:'03/10/2023',y:[16.74,16.74,16.66,16.67]},{ x:'03/13/2023',y:[16.65,16.67,16.58,16.67]},{ x:'03/14/2023',y:[16.56,16.56,16.48,16.50]},{ x:'03/15/2023',y:[16.62,16.78,16.62,16.74]},{ x:'03/16/2023',y:[16.28,16.44,16.28,16.43]},{ x:'03/17/2023',y:[16.37,16.41,16.36,16.41]} ] }], 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());