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.86,19.24,18.86,19.24]},{ x:'11/16/2022',y:[19.35,19.35,19.20,19.20]},{ x:'11/17/2022',y:[19.04,19.11,19.04,19.11]},{ x:'11/18/2022',y:[19.09,19.15,19.09,19.15]},{ x:'11/21/2022',y:[18.97,18.99,18.97,18.98]},{ x:'11/22/2022',y:[18.83,18.85,18.83,18.85]},{ x:'11/23/2022',y:[18.92,19.02,18.92,19.02]},{ x:'11/24/2022',y:[19.06,19.11,19.06,19.11]},{ x:'11/25/2022',y:[19.03,19.03,19.03,19.03]},{ x:'11/28/2022',y:[19.11,19.11,18.99,18.99]},{ x:'11/29/2022',y:[19.21,19.25,19.21,19.25]},{ x:'11/30/2022',y:[19.32,19.36,19.32,19.36]},{ x:'12/01/2022',y:[19.86,19.86,19.72,19.74]},{ x:'12/02/2022',y:[19.61,19.67,19.54,19.54]},{ x:'12/05/2022',y:[19.65,19.67,19.60,19.67]},{ x:'12/06/2022',y:[19.60,19.62,19.60,19.62]},{ x:'12/07/2022',y:[19.53,19.61,19.53,19.61]},{ x:'12/08/2022',y:[19.40,19.61,19.40,19.61]},{ x:'12/09/2022',y:[19.63,19.79,19.63,19.76]},{ x:'12/12/2022',y:[19.63,19.63,19.55,19.60]},{ x:'12/13/2022',y:[19.52,19.55,19.49,19.55]},{ x:'12/14/2022',y:[19.60,19.62,19.60,19.62]},{ x:'12/15/2022',y:[19.48,19.48,19.47,19.47]},{ x:'12/16/2022',y:[19.40,19.46,19.39,19.39]},{ x:'12/19/2022',y:[19.37,19.39,19.37,19.39]},{ x:'12/20/2022',y:[19.30,19.30,19.18,19.21]},{ x:'12/21/2022',y:[19.19,19.19,19.16,19.18]},{ x:'12/22/2022',y:[19.27,19.41,19.27,19.38]},{ x:'12/23/2022',y:[19.21,19.30,19.21,19.30]},{ x:'12/26/2022',y:[19.31,19.31,19.24,19.27]},{ x:'12/27/2022',y:[19.31,19.34,19.31,19.33]},{ x:'12/28/2022',y:[19.28,19.39,19.28,19.39]},{ x:'12/29/2022',y:[19.25,19.30,19.25,19.30]},{ x:'12/30/2022',y:[19.31,19.39,19.31,19.39]},{ x:'01/03/2023',y:[19.41,19.44,19.41,19.44]},{ x:'01/04/2023',y:[19.42,19.56,19.42,19.47]},{ x:'01/05/2023',y:[19.70,19.81,19.70,19.75]},{ x:'01/06/2023',y:[19.87,19.94,19.86,19.86]},{ x:'01/09/2023',y:[20.00,20.06,20.00,20.05]},{ x:'01/10/2023',y:[20.08,20.14,20.05,20.14]},{ x:'01/11/2023',y:[20.25,20.28,20.25,20.28]},{ x:'01/12/2023',y:[20.26,20.27,20.26,20.27]},{ x:'01/13/2023',y:[20.35,20.35,20.28,20.35]},{ x:'01/16/2023',y:[20.43,20.52,20.41,20.41]},{ x:'01/17/2023',y:[20.29,20.37,20.29,20.37]},{ x:'01/30/2023',y:[20.39,20.39,20.31,20.33]},{ x:'01/31/2023',y:[20.20,20.20,20.11,20.11]},{ x:'02/01/2023',y:[20.16,20.20,20.16,20.20]},{ x:'02/02/2023',y:[20.17,20.17,20.17,20.17]},{ x:'02/03/2023',y:[19.99,19.99,19.85,19.85]},{ x:'02/06/2023',y:[19.80,19.80,19.78,19.78]},{ x:'02/07/2023',y:[19.78,19.78,19.78,19.78]},{ x:'02/08/2023',y:[19.77,19.84,19.77,19.83]},{ x:'02/09/2023',y:[19.82,19.82,19.70,19.81]},{ x:'02/10/2023',y:[19.76,19.76,19.65,19.65]},{ x:'02/13/2023',y:[19.58,19.64,19.58,19.64]},{ x:'02/14/2023',y:[19.66,19.70,19.66,19.70]},{ x:'02/15/2023',y:[19.51,19.56,19.51,19.56]},{ x:'02/16/2023',y:[19.79,19.79,19.75,19.78]},{ x:'02/17/2023',y:[19.62,19.62,19.60,19.62]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00736 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());