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:'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]},{ x:'02/20/2023',y:[19.48,19.48,19.44,19.48]},{ x:'02/21/2023',y:[19.39,19.39,19.39,19.39]},{ x:'02/22/2023',y:[19.07,19.11,19.07,19.10]},{ x:'02/23/2023',y:[19.24,19.29,19.24,19.29]},{ x:'02/24/2023',y:[19.23,19.23,19.21,19.22]},{ x:'03/01/2023',y:[19.22,19.22,19.06,19.13]},{ x:'03/02/2023',y:[19.06,19.06,18.91,18.92]},{ x:'03/03/2023',y:[19.23,19.23,19.15,19.16]},{ x:'03/06/2023',y:[19.67,19.68,19.58,19.65]},{ x:'03/07/2023',y:[19.63,19.68,19.63,19.68]},{ x:'03/08/2023',y:[19.40,19.46,19.36,19.40]},{ x:'03/09/2023',y:[19.50,19.56,19.47,19.50]},{ x:'03/10/2023',y:[19.16,19.16,19.07,19.10]},{ x:'03/13/2023',y:[18.99,19.06,18.95,19.06]},{ x:'03/14/2023',y:[18.79,18.82,18.76,18.78]},{ x:'03/15/2023',y:[18.97,19.11,18.97,19.10]},{ x:'03/16/2023',y:[19.14,19.32,19.14,19.27]},{ x:'03/17/2023',y:[19.61,19.61,19.52,19.54]},{ x:'03/20/2023',y:[19.46,19.50,19.41,19.45]},{ x:'03/21/2023',y:[19.48,19.51,19.48,19.50]},{ x:'03/22/2023',y:[19.76,19.78,19.76,19.76]},{ x:'03/23/2023',y:[19.41,19.43,19.39,19.42]},{ x:'03/24/2023',y:[19.51,19.67,19.51,19.67]},{ x:'03/27/2023',y:[19.68,19.72,19.68,19.70]},{ x:'03/28/2023',y:[19.59,19.59,19.52,19.52]},{ x:'03/29/2023',y:[19.52,19.52,19.50,19.51]},{ x:'03/30/2023',y:[19.78,19.81,19.78,19.80]},{ x:'03/31/2023',y:[19.96,20.07,19.96,20.06]},{ x:'04/06/2023',y:[19.90,20.06,19.89,20.01]},{ x:'04/07/2023',y:[20.11,20.22,20.06,20.19]},{ x:'04/10/2023',y:[20.14,20.14,20.11,20.12]},{ x:'04/11/2023',y:[20.20,20.21,20.19,20.20]},{ x:'04/12/2023',y:[20.11,20.11,20.08,20.09]},{ x:'04/13/2023',y:[20.04,20.06,20.02,20.06]},{ x:'04/14/2023',y:[20.32,20.33,20.31,20.31]},{ x:'04/17/2023',y:[20.29,20.31,20.29,20.31]},{ x:'04/18/2023',y:[20.31,20.31,20.28,20.28]},{ x:'04/19/2023',y:[20.31,20.32,20.29,20.30]},{ x:'04/20/2023',y:[20.26,20.28,20.25,20.26]},{ x:'04/21/2023',y:[20.22,20.22,20.19,20.20]},{ x:'04/24/2023',y:[20.17,20.17,20.15,20.15]},{ x:'04/25/2023',y:[20.12,20.12,20.10,20.10]},{ x:'04/26/2023',y:[19.99,19.99,19.96,19.96]},{ x:'04/27/2023',y:[19.90,19.93,19.90,19.93]} ] }], 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());