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:[32.39,32.39,32.38,32.38]},{ x:'11/16/2022',y:[32.40,32.44,32.40,32.44]},{ x:'11/17/2022',y:[32.80,32.96,32.80,32.94]},{ x:'11/18/2022',y:[32.76,32.84,32.76,32.84]},{ x:'11/21/2022',y:[32.94,32.94,32.94,32.94]},{ x:'11/22/2022',y:[33.00,33.00,32.89,32.93]},{ x:'11/23/2022',y:[33.33,33.36,33.33,33.36]},{ x:'11/24/2022',y:[33.63,33.63,33.60,33.60]},{ x:'11/25/2022',y:[33.54,33.54,33.54,33.54]},{ x:'11/28/2022',y:[33.49,33.73,33.49,33.73]},{ x:'11/29/2022',y:[33.51,33.52,33.46,33.46]},{ x:'11/30/2022',y:[33.18,33.20,33.18,33.18]},{ x:'12/01/2022',y:[33.14,33.20,33.14,33.20]},{ x:'12/02/2022',y:[33.90,33.91,33.90,33.90]},{ x:'12/05/2022',y:[34.11,34.12,34.11,34.12]},{ x:'12/06/2022',y:[33.80,33.88,33.80,33.88]},{ x:'12/07/2022',y:[34.25,34.27,34.25,34.27]},{ x:'12/08/2022',y:[34.64,34.87,34.64,34.87]},{ x:'12/09/2022',y:[34.79,34.87,34.79,34.86]},{ x:'12/12/2022',y:[34.25,34.46,34.25,34.46]},{ x:'12/13/2022',y:[34.48,34.48,34.48,34.48]},{ x:'12/14/2022',y:[34.60,34.61,34.60,34.60]},{ x:'12/15/2022',y:[34.56,34.69,34.56,34.69]},{ x:'12/16/2022',y:[34.83,34.90,34.83,34.90]},{ x:'12/19/2022',y:[34.62,34.66,34.60,34.66]},{ x:'12/20/2022',y:[34.19,34.19,34.12,34.12]},{ x:'12/21/2022',y:[33.60,33.61,33.54,33.61]},{ x:'12/22/2022',y:[33.65,33.65,33.65,33.65]},{ x:'12/23/2022',y:[33.72,33.72,33.72,33.72]},{ x:'12/26/2022',y:[33.30,33.30,33.25,33.28]},{ x:'12/27/2022',y:[33.39,33.39,33.39,33.39]},{ x:'12/28/2022',y:[32.94,32.94,32.86,32.86]},{ x:'12/29/2022',y:[32.79,32.80,32.79,32.80]},{ x:'12/30/2022',y:[33.00,33.00,32.99,32.99]},{ x:'01/03/2023',y:[32.95,32.95,32.82,32.85]},{ x:'01/04/2023',y:[33.10,33.20,33.10,33.20]},{ x:'01/05/2023',y:[33.45,33.50,33.43,33.49]},{ x:'01/06/2023',y:[33.62,33.62,33.58,33.58]},{ x:'01/09/2023',y:[33.98,33.99,33.93,33.93]},{ x:'01/10/2023',y:[34.08,34.08,34.08,34.08]},{ x:'01/11/2023',y:[33.77,33.88,33.77,33.88]},{ x:'01/12/2023',y:[34.26,34.28,34.26,34.28]},{ x:'01/13/2023',y:[34.71,34.77,34.71,34.76]},{ x:'01/16/2023',y:[34.70,34.85,34.24,34.29]},{ x:'01/17/2023',y:[34.42,34.45,34.40,34.45]},{ x:'01/30/2023',y:[34.18,34.18,34.10,34.15]},{ x:'01/31/2023',y:[34.07,34.07,34.00,34.04]},{ x:'02/01/2023',y:[34.24,34.29,34.20,34.24]},{ x:'02/02/2023',y:[34.18,34.37,34.18,34.35]},{ x:'02/03/2023',y:[34.49,34.49,34.42,34.48]},{ x:'02/06/2023',y:[34.45,34.45,34.00,34.03]},{ x:'02/07/2023',y:[33.84,33.96,33.83,33.96]},{ x:'02/08/2023',y:[33.70,33.79,33.67,33.76]},{ x:'02/09/2023',y:[34.00,34.00,33.89,33.89]},{ x:'02/10/2023',y:[33.55,33.70,33.55,33.70]},{ x:'02/13/2023',y:[33.26,33.44,33.26,33.43]},{ x:'02/14/2023',y:[33.61,33.64,33.60,33.64]},{ x:'02/15/2023',y:[33.59,33.70,33.59,33.70]},{ x:'02/16/2023',y:[32.92,32.94,32.89,32.92]},{ x:'02/17/2023',y:[32.35,32.45,32.35,32.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00799b 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());