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/15/2022',y:[14.24,14.31,14.19,14.26]},{ x:'12/16/2022',y:[14.00,14.07,13.93,14.03]},{ x:'12/19/2022',y:[14.00,14.04,13.90,13.96]},{ x:'12/20/2022',y:[13.96,13.99,13.68,13.68]},{ x:'12/21/2022',y:[13.69,13.78,13.66,13.69]},{ x:'12/22/2022',y:[13.86,13.90,13.83,13.85]},{ x:'12/23/2022',y:[13.68,13.70,13.60,13.67]},{ x:'12/26/2022',y:[13.68,13.70,13.64,13.68]},{ x:'12/27/2022',y:[13.73,13.84,13.72,13.74]},{ x:'12/28/2022',y:[13.67,13.67,13.44,13.50]},{ x:'12/29/2022',y:[13.46,13.49,13.36,13.48]},{ x:'12/30/2022',y:[13.65,13.65,13.55,13.55]},{ x:'01/03/2023',y:[13.54,13.69,13.39,13.67]},{ x:'01/04/2023',y:[13.65,13.69,13.60,13.65]},{ x:'01/05/2023',y:[13.72,13.76,13.63,13.66]},{ x:'01/06/2023',y:[13.66,13.86,13.66,13.83]},{ x:'01/09/2023',y:[14.03,14.24,14.02,14.23]},{ x:'01/10/2023',y:[14.25,14.36,14.25,14.33]},{ x:'01/11/2023',y:[14.36,14.43,14.30,14.34]},{ x:'01/12/2023',y:[14.36,14.40,14.28,14.30]},{ x:'01/13/2023',y:[14.50,14.58,14.31,14.34]},{ x:'01/16/2023',y:[14.41,14.50,14.40,14.40]},{ x:'01/17/2023',y:[14.41,14.46,14.38,14.41]},{ x:'01/30/2023',y:[14.50,14.71,14.50,14.67]},{ x:'01/31/2023',y:[14.65,14.71,14.52,14.53]},{ x:'02/01/2023',y:[14.60,14.65,14.56,14.64]},{ x:'02/02/2023',y:[14.79,14.90,14.79,14.88]},{ x:'02/03/2023',y:[14.88,14.94,14.79,14.88]},{ x:'02/06/2023',y:[14.80,14.80,14.70,14.70]},{ x:'02/07/2023',y:[14.61,14.71,14.61,14.66]},{ x:'02/08/2023',y:[14.76,14.98,14.76,14.94]},{ x:'02/09/2023',y:[14.92,14.97,14.88,14.96]},{ x:'02/10/2023',y:[14.96,14.99,14.91,14.97]},{ x:'02/13/2023',y:[14.96,14.96,14.81,14.87]},{ x:'02/14/2023',y:[14.92,15.00,14.92,14.97]},{ x:'02/15/2023',y:[14.76,14.84,14.69,14.71]},{ x:'02/16/2023',y:[14.75,14.89,14.75,14.86]},{ x:'02/17/2023',y:[14.78,14.78,14.68,14.74]},{ x:'02/20/2023',y:[14.75,14.81,14.68,14.76]},{ x:'02/21/2023',y:[14.76,14.83,14.75,14.81]},{ x:'02/22/2023',y:[14.68,14.68,14.56,14.61]},{ x:'02/23/2023',y:[14.67,14.88,14.66,14.84]},{ x:'02/24/2023',y:[14.88,14.93,14.70,14.70]},{ x:'03/01/2023',y:[14.69,14.93,14.49,14.93]},{ x:'03/02/2023',y:[14.92,14.92,14.77,14.90]},{ x:'03/03/2023',y:[14.93,15.03,14.91,14.92]},{ x:'03/06/2023',y:[15.02,15.18,15.02,15.12]},{ x:'03/07/2023',y:[15.12,15.28,15.10,15.25]},{ x:'03/08/2023',y:[15.18,15.18,15.08,15.15]},{ x:'03/09/2023',y:[15.17,15.21,15.13,15.13]},{ x:'03/10/2023',y:[15.00,15.01,14.84,14.87]},{ x:'03/13/2023',y:[14.80,14.93,14.73,14.93]},{ x:'03/14/2023',y:[14.77,14.83,14.71,14.75]},{ x:'03/15/2023',y:[14.80,14.96,14.77,14.77]},{ x:'03/16/2023',y:[14.73,14.83,14.70,14.74]},{ x:'03/17/2023',y:[14.84,14.97,14.84,14.97]},{ x:'03/20/2023',y:[14.97,15.00,14.90,14.91]},{ x:'03/21/2023',y:[15.00,15.03,14.95,15.01]},{ x:'03/22/2023',y:[15.11,15.24,15.11,15.24]},{ x:'03/23/2023',y:[15.15,15.38,15.15,15.34]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00881 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());