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.40,31.40,31.22,31.22]},{ x:'11/11/2022',y:[32.03,32.11,31.96,31.96]},{ x:'11/14/2022',y:[31.78,31.78,31.57,31.58]},{ x:'11/15/2022',y:[31.81,31.87,31.81,31.85]},{ x:'11/16/2022',y:[32.39,32.51,32.39,32.48]},{ x:'11/17/2022',y:[32.80,33.00,32.80,32.94]},{ x:'11/18/2022',y:[32.84,32.91,32.84,32.91]},{ x:'11/21/2022',y:[32.97,33.06,32.97,33.06]},{ x:'11/22/2022',y:[33.16,33.18,33.13,33.13]},{ x:'11/23/2022',y:[33.47,33.59,33.47,33.59]},{ x:'11/24/2022',y:[33.98,33.98,33.95,33.95]},{ x:'11/25/2022',y:[33.93,33.93,33.93,33.93]},{ x:'11/28/2022',y:[33.98,34.18,33.98,34.18]},{ x:'11/29/2022',y:[33.84,33.84,33.67,33.67]},{ x:'11/30/2022',y:[33.24,33.24,33.21,33.21]},{ x:'12/01/2022',y:[33.45,33.48,33.45,33.46]},{ x:'12/02/2022',y:[34.16,34.16,33.97,33.98]},{ x:'12/05/2022',y:[34.14,34.25,34.10,34.11]},{ x:'12/06/2022',y:[34.11,34.16,34.05,34.16]},{ x:'12/07/2022',y:[34.35,34.42,34.33,34.34]},{ x:'12/08/2022',y:[34.77,34.97,34.77,34.85]},{ x:'12/09/2022',y:[35.03,35.16,35.03,35.15]},{ x:'12/12/2022',y:[34.43,34.72,34.43,34.67]},{ x:'12/13/2022',y:[34.64,34.68,34.62,34.62]},{ x:'12/14/2022',y:[34.78,34.80,34.77,34.78]},{ x:'12/15/2022',y:[34.77,34.77,34.77,34.77]},{ x:'12/16/2022',y:[34.80,34.82,34.69,34.72]},{ x:'12/19/2022',y:[34.32,34.46,34.32,34.42]},{ x:'12/20/2022',y:[34.02,34.08,33.56,33.56]},{ x:'12/21/2022',y:[33.29,33.37,33.22,33.37]},{ x:'12/22/2022',y:[33.54,33.63,33.54,33.59]},{ x:'12/23/2022',y:[33.40,33.57,33.40,33.57]},{ x:'12/26/2022',y:[33.40,33.42,33.40,33.42]},{ x:'12/27/2022',y:[33.27,33.40,33.27,33.40]},{ x:'12/28/2022',y:[32.69,32.85,32.69,32.82]},{ x:'12/29/2022',y:[32.73,32.73,32.69,32.71]},{ x:'12/30/2022',y:[32.86,32.90,32.86,32.90]},{ x:'01/03/2023',y:[32.56,32.68,32.56,32.65]},{ x:'01/04/2023',y:[32.93,33.19,32.93,33.19]},{ x:'01/05/2023',y:[33.39,33.40,33.36,33.36]},{ x:'01/06/2023',y:[33.41,33.49,33.41,33.42]},{ x:'01/09/2023',y:[33.83,33.95,33.83,33.92]},{ x:'01/10/2023',y:[34.06,34.08,33.99,34.04]},{ x:'01/11/2023',y:[33.99,33.99,33.97,33.98]},{ x:'01/12/2023',y:[34.20,34.46,34.20,34.46]},{ x:'01/13/2023',y:[34.61,34.75,34.61,34.75]},{ x:'01/16/2023',y:[34.56,34.60,34.49,34.52]},{ x:'01/17/2023',y:[34.38,34.41,34.36,34.36]},{ x:'01/30/2023',y:[33.96,34.01,33.86,33.91]},{ x:'01/31/2023',y:[33.68,33.68,33.31,33.41]},{ x:'02/01/2023',y:[33.67,33.71,33.65,33.71]},{ x:'02/02/2023',y:[33.80,33.80,33.63,33.63]},{ x:'02/03/2023',y:[33.81,33.99,33.81,33.93]},{ x:'02/06/2023',y:[33.66,33.66,33.46,33.50]},{ x:'02/07/2023',y:[33.47,33.47,33.34,33.36]},{ x:'02/08/2023',y:[33.01,33.09,33.01,33.08]},{ x:'02/09/2023',y:[33.27,33.29,33.18,33.18]},{ x:'02/10/2023',y:[32.82,32.85,32.82,32.85]},{ x:'02/13/2023',y:[32.62,32.62,32.50,32.51]},{ x:'02/14/2023',y:[32.68,32.71,32.67,32.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00723b 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());