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/24/2022',y:[14.41,14.56,14.41,14.53]},{ x:'11/25/2022',y:[14.54,14.55,14.46,14.49]},{ x:'11/28/2022',y:[14.38,14.38,14.18,14.24]},{ x:'11/29/2022',y:[14.15,14.31,14.10,14.29]},{ x:'11/30/2022',y:[14.29,14.45,14.27,14.45]},{ x:'12/01/2022',y:[14.71,14.80,14.65,14.69]},{ x:'12/02/2022',y:[14.59,14.72,14.52,14.67]},{ x:'12/05/2022',y:[14.65,14.82,14.65,14.69]},{ x:'12/06/2022',y:[14.63,14.63,14.42,14.42]},{ x:'12/07/2022',y:[14.33,14.44,14.25,14.25]},{ x:'12/08/2022',y:[14.23,14.23,14.02,14.10]},{ x:'12/09/2022',y:[14.20,14.35,14.18,14.29]},{ x:'12/12/2022',y:[14.20,14.20,14.09,14.18]},{ x:'12/13/2022',y:[14.28,14.28,14.12,14.14]},{ x:'12/14/2022',y:[14.20,14.33,14.19,14.33]},{ 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]} ] }], 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());