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/22/2022',y:[20.71,20.71,20.65,20.65]},{ x:'11/23/2022',y:[20.68,20.68,20.39,20.41]},{ x:'11/24/2022',y:[20.47,20.48,20.38,20.38]},{ x:'11/25/2022',y:[20.19,20.19,20.16,20.16]},{ x:'11/28/2022',y:[19.72,19.98,19.68,19.89]},{ x:'11/29/2022',y:[19.89,20.35,19.89,20.35]},{ x:'11/30/2022',y:[20.49,20.50,20.48,20.50]},{ x:'12/01/2022',y:[20.72,20.72,20.66,20.70]},{ x:'12/02/2022',y:[20.56,20.56,20.53,20.53]},{ x:'12/05/2022',y:[20.71,20.91,20.71,20.91]},{ x:'12/06/2022',y:[20.94,21.05,20.94,20.95]},{ x:'12/07/2022',y:[20.91,21.00,20.91,21.00]},{ x:'12/08/2022',y:[20.96,21.00,20.96,20.99]},{ x:'12/09/2022',y:[21.00,21.02,20.99,21.02]},{ x:'12/12/2022',y:[20.93,20.93,20.90,20.90]},{ x:'12/13/2022',y:[20.70,20.75,20.70,20.75]},{ x:'12/14/2022',y:[20.68,20.68,20.68,20.68]},{ x:'12/15/2022',y:[20.52,20.61,20.51,20.61]},{ x:'12/16/2022',y:[20.76,20.76,20.54,20.54]},{ x:'12/19/2022',y:[20.58,20.58,20.20,20.22]},{ x:'12/20/2022',y:[20.05,20.05,19.94,19.94]},{ x:'12/21/2022',y:[19.91,19.92,19.74,19.74]},{ x:'12/22/2022',y:[19.86,19.86,19.76,19.76]},{ x:'12/23/2022',y:[19.66,19.66,19.41,19.62]},{ x:'12/26/2022',y:[19.50,19.79,19.50,19.76]},{ x:'12/27/2022',y:[20.05,20.05,19.86,19.89]},{ x:'12/28/2022',y:[19.96,19.99,19.92,19.99]},{ x:'12/29/2022',y:[19.80,19.96,19.80,19.92]},{ x:'12/30/2022',y:[19.97,19.99,19.95,19.95]},{ x:'01/03/2023',y:[19.99,20.39,19.99,20.38]},{ x:'01/04/2023',y:[20.40,20.46,20.40,20.41]},{ x:'01/05/2023',y:[20.59,20.61,20.44,20.57]},{ x:'01/06/2023',y:[20.73,20.84,20.67,20.74]},{ x:'01/09/2023',y:[20.74,20.95,20.74,20.88]},{ x:'01/10/2023',y:[20.89,20.90,20.85,20.87]},{ x:'01/11/2023',y:[20.87,20.96,20.87,20.91]},{ x:'01/12/2023',y:[20.87,20.87,20.77,20.79]},{ x:'01/13/2023',y:[20.99,20.99,20.93,20.93]},{ x:'01/16/2023',y:[21.09,21.45,21.09,21.43]},{ x:'01/17/2023',y:[21.30,21.30,21.16,21.16]},{ x:'01/30/2023',y:[22.00,22.00,21.72,21.72]},{ x:'01/31/2023',y:[21.50,21.50,21.46,21.49]},{ x:'02/01/2023',y:[21.57,21.64,21.54,21.62]},{ x:'02/02/2023',y:[21.72,21.76,21.62,21.74]},{ x:'02/03/2023',y:[21.74,21.74,21.20,21.20]},{ x:'02/06/2023',y:[21.42,21.43,21.23,21.32]},{ x:'02/07/2023',y:[21.36,21.43,21.36,21.43]},{ x:'02/08/2023',y:[21.43,21.45,21.41,21.41]},{ x:'02/09/2023',y:[21.29,21.47,21.29,21.47]},{ x:'02/10/2023',y:[21.55,21.57,21.36,21.40]},{ x:'02/13/2023',y:[21.61,21.61,21.58,21.58]},{ x:'02/14/2023',y:[21.66,21.66,21.61,21.61]},{ x:'02/15/2023',y:[21.67,21.70,21.66,21.66]},{ x:'02/16/2023',y:[21.63,21.76,21.63,21.76]},{ x:'02/17/2023',y:[21.33,21.34,21.18,21.18]},{ x:'02/20/2023',y:[21.21,21.36,21.15,21.36]},{ x:'02/21/2023',y:[21.52,21.65,21.52,21.60]},{ x:'02/22/2023',y:[21.65,21.70,21.61,21.61]},{ x:'02/23/2023',y:[21.78,21.78,21.48,21.48]},{ x:'02/24/2023',y:[21.35,21.35,21.35,21.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00783 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());