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/10/2022',y:[31.30,31.30,31.17,31.20]},{ x:'11/11/2022',y:[31.99,31.99,31.94,31.98]},{ x:'11/14/2022',y:[31.63,31.63,31.59,31.59]},{ x:'11/15/2022',y:[31.61,31.63,31.61,31.63]},{ x:'11/16/2022',y:[32.28,32.28,32.22,32.22]},{ x:'11/17/2022',y:[32.80,32.80,32.80,32.80]},{ x:'11/18/2022',y:[32.84,32.84,32.84,32.84]},{ x:'11/21/2022',y:[32.94,32.94,32.94,32.94]},{ x:'11/22/2022',y:[32.99,32.99,32.98,32.98]},{ x:'11/23/2022',y:[33.43,33.43,33.43,33.43]},{ x:'11/24/2022',y:[33.97,33.97,33.88,33.88]},{ x:'11/25/2022',y:[34.02,34.02,33.98,33.98]},{ x:'11/28/2022',y:[33.91,33.94,33.91,33.92]},{ x:'11/29/2022',y:[33.62,33.62,33.61,33.61]},{ x:'11/30/2022',y:[33.42,33.42,33.40,33.40]},{ x:'12/01/2022',y:[33.56,33.56,33.46,33.52]},{ x:'12/02/2022',y:[34.00,34.34,34.00,34.34]},{ x:'12/05/2022',y:[34.36,34.37,34.36,34.37]},{ x:'12/06/2022',y:[34.07,34.08,34.04,34.04]},{ x:'12/07/2022',y:[34.46,34.46,34.39,34.39]},{ x:'12/08/2022',y:[34.80,34.83,34.80,34.81]},{ x:'12/09/2022',y:[35.19,35.22,35.19,35.22]},{ x:'12/12/2022',y:[34.66,34.66,34.62,34.62]},{ x:'12/13/2022',y:[34.60,34.60,34.60,34.60]},{ x:'12/14/2022',y:[34.88,34.88,34.88,34.88]},{ x:'12/15/2022',y:[34.65,34.78,34.65,34.70]},{ x:'12/16/2022',y:[34.27,34.28,34.27,34.27]},{ x:'12/19/2022',y:[33.89,33.89,33.89,33.89]},{ x:'12/20/2022',y:[33.58,33.58,33.05,33.05]},{ x:'12/21/2022',y:[32.77,32.80,32.77,32.80]},{ x:'12/22/2022',y:[33.11,33.18,33.11,33.18]},{ x:'12/23/2022',y:[32.97,32.97,32.93,32.93]},{ x:'12/26/2022',y:[32.79,32.79,32.73,32.73]},{ x:'12/27/2022',y:[32.78,32.80,32.78,32.80]},{ x:'12/28/2022',y:[32.32,32.33,32.32,32.33]},{ x:'12/29/2022',y:[32.08,32.11,32.08,32.11]},{ x:'12/30/2022',y:[32.39,32.39,32.36,32.36]},{ x:'01/03/2023',y:[32.31,32.31,32.30,32.30]},{ x:'01/04/2023',y:[32.52,32.69,32.52,32.69]},{ x:'01/05/2023',y:[32.72,32.72,32.67,32.71]},{ x:'01/06/2023',y:[32.93,32.93,32.93,32.93]},{ x:'01/09/2023',y:[33.46,33.46,33.37,33.37]},{ x:'01/10/2023',y:[33.53,33.58,33.53,33.54]},{ x:'01/11/2023',y:[33.22,33.27,33.22,33.27]},{ x:'01/12/2023',y:[33.79,33.85,33.79,33.82]},{ x:'01/13/2023',y:[34.10,34.14,34.10,34.14]},{ x:'01/16/2023',y:[33.99,33.99,33.99,33.99]},{ x:'01/17/2023',y:[33.92,33.92,33.92,33.92]},{ x:'01/30/2023',y:[33.88,33.88,33.88,33.88]},{ x:'01/31/2023',y:[33.37,33.42,33.36,33.42]},{ x:'02/01/2023',y:[33.60,33.60,33.60,33.60]},{ x:'02/02/2023',y:[33.65,33.65,33.62,33.62]},{ x:'02/03/2023',y:[33.70,33.75,33.70,33.72]},{ x:'02/06/2023',y:[33.32,33.32,33.28,33.28]},{ x:'02/07/2023',y:[33.20,33.20,33.18,33.20]},{ x:'02/08/2023',y:[32.93,32.94,32.87,32.94]},{ x:'02/09/2023',y:[32.89,32.89,32.83,32.83]},{ x:'02/10/2023',y:[32.24,32.62,32.22,32.62]},{ x:'02/13/2023',y:[32.27,32.30,32.20,32.30]},{ x:'02/14/2023',y:[32.56,32.56,32.50,32.54]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00781b 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());