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:[18.44,18.54,18.44,18.54]},{ x:'11/16/2022',y:[18.78,18.85,18.75,18.80]},{ x:'11/17/2022',y:[18.63,18.63,18.58,18.58]},{ x:'11/18/2022',y:[18.53,18.54,18.50,18.50]},{ x:'11/21/2022',y:[18.48,18.48,18.41,18.46]},{ x:'11/22/2022',y:[18.32,18.33,18.31,18.31]},{ x:'11/23/2022',y:[18.57,18.57,18.52,18.54]},{ x:'11/24/2022',y:[18.76,18.79,18.76,18.79]},{ x:'11/25/2022',y:[18.76,18.76,18.70,18.75]},{ x:'11/28/2022',y:[18.75,18.79,18.40,18.41]},{ x:'11/29/2022',y:[18.33,18.39,18.31,18.39]},{ x:'11/30/2022',y:[18.15,18.17,18.14,18.14]},{ x:'12/01/2022',y:[18.76,18.80,18.74,18.80]},{ x:'12/02/2022',y:[18.70,18.71,18.70,18.71]},{ x:'12/05/2022',y:[18.75,18.75,18.65,18.65]},{ x:'12/06/2022',y:[18.19,18.48,18.19,18.26]},{ x:'12/07/2022',y:[18.13,18.14,18.08,18.10]},{ x:'12/08/2022',y:[17.96,18.02,17.96,18.01]},{ x:'12/09/2022',y:[18.20,18.23,18.18,18.23]},{ x:'12/12/2022',y:[18.07,18.07,17.99,18.04]},{ x:'12/13/2022',y:[18.19,18.34,18.19,18.19]},{ x:'12/14/2022',y:[18.70,18.70,18.55,18.57]},{ x:'12/15/2022',y:[18.48,18.48,18.36,18.39]},{ x:'12/16/2022',y:[18.00,18.05,17.94,17.94]},{ x:'12/19/2022',y:[17.95,17.95,17.82,17.82]},{ x:'12/20/2022',y:[17.67,17.67,17.33,17.35]},{ x:'12/21/2022',y:[17.60,17.60,17.50,17.54]},{ x:'12/22/2022',y:[17.78,17.80,17.76,17.79]},{ x:'12/23/2022',y:[17.32,17.42,17.32,17.41]},{ x:'12/26/2022',y:[17.54,17.54,17.40,17.44]},{ x:'12/27/2022',y:[17.57,17.57,17.39,17.44]},{ x:'12/28/2022',y:[17.24,17.24,17.07,17.09]},{ x:'12/29/2022',y:[16.90,16.94,16.88,16.92]},{ x:'12/30/2022',y:[17.17,17.22,17.15,17.17]},{ x:'01/03/2023',y:[17.32,17.32,17.25,17.28]},{ x:'01/04/2023',y:[17.29,17.32,17.29,17.30]},{ x:'01/05/2023',y:[17.58,17.58,17.42,17.46]},{ x:'01/06/2023',y:[17.27,17.30,17.26,17.27]},{ x:'01/09/2023',y:[17.58,17.63,17.54,17.63]},{ x:'01/10/2023',y:[17.53,17.55,17.49,17.50]},{ x:'01/11/2023',y:[17.84,17.86,17.83,17.86]},{ x:'01/12/2023',y:[17.97,18.06,17.97,18.06]},{ x:'01/13/2023',y:[18.18,18.18,18.08,18.08]},{ x:'01/16/2023',y:[18.15,18.30,18.15,18.28]},{ x:'01/17/2023',y:[18.19,18.19,18.12,18.15]},{ x:'01/30/2023',y:[19.02,19.21,19.02,19.11]},{ x:'01/31/2023',y:[18.81,18.81,18.65,18.66]},{ x:'02/01/2023',y:[18.92,18.95,18.89,18.95]},{ x:'02/02/2023',y:[19.51,19.51,19.43,19.43]},{ x:'02/03/2023',y:[19.70,19.70,19.61,19.61]},{ x:'02/06/2023',y:[19.65,19.65,19.54,19.59]},{ x:'02/07/2023',y:[19.56,19.58,19.53,19.53]},{ x:'02/08/2023',y:[19.70,19.88,19.70,19.88]},{ x:'02/09/2023',y:[19.60,19.61,19.59,19.60]},{ x:'02/10/2023',y:[19.37,19.37,19.34,19.34]},{ x:'02/13/2023',y:[19.25,19.25,19.16,19.20]},{ x:'02/14/2023',y:[19.56,19.56,19.54,19.56]},{ x:'02/15/2023',y:[19.64,19.66,19.63,19.65]},{ x:'02/16/2023',y:[19.85,20.08,19.85,19.99]},{ x:'02/17/2023',y:[19.51,19.52,19.47,19.48]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00886 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());