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:'11/15/2022',y:[17.00,17.04,16.97,17.03]},{ x:'11/16/2022',y:[17.07,17.21,17.07,17.19]},{ x:'11/17/2022',y:[17.21,17.21,17.11,17.13]},{ x:'11/18/2022',y:[17.18,17.18,17.12,17.12]},{ x:'11/21/2022',y:[17.14,17.15,17.12,17.12]},{ x:'11/22/2022',y:[17.07,17.07,17.01,17.02]},{ x:'11/23/2022',y:[17.21,17.24,17.21,17.23]},{ x:'11/24/2022',y:[17.42,17.42,17.37,17.39]},{ x:'11/25/2022',y:[17.44,17.46,17.41,17.41]},{ x:'11/28/2022',y:[17.40,17.40,17.29,17.29]},{ x:'11/29/2022',y:[17.18,17.18,17.11,17.15]},{ x:'11/30/2022',y:[16.95,16.95,16.89,16.93]},{ x:'12/01/2022',y:[17.42,17.45,17.27,17.28]},{ x:'12/02/2022',y:[17.26,17.29,17.26,17.28]},{ x:'12/05/2022',y:[17.43,17.46,17.38,17.40]},{ x:'12/06/2022',y:[17.31,17.39,17.31,17.34]},{ x:'12/07/2022',y:[17.05,17.05,17.01,17.03]},{ x:'12/08/2022',y:[17.00,17.00,16.95,16.97]},{ 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]} ] }], 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());