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/14/2022',y:[32.00,32.13,31.83,31.85]},{ x:'11/15/2022',y:[31.86,32.05,31.86,32.05]},{ x:'11/16/2022',y:[32.50,32.80,32.50,32.78]},{ x:'11/17/2022',y:[31.78,31.88,31.73,31.82]},{ x:'11/18/2022',y:[31.66,31.66,31.53,31.53]},{ x:'11/21/2022',y:[31.44,31.53,31.43,31.45]},{ x:'11/22/2022',y:[31.18,31.22,31.09,31.09]},{ x:'11/23/2022',y:[31.60,31.61,31.53,31.56]},{ x:'11/24/2022',y:[32.09,32.13,31.99,31.99]},{ x:'11/25/2022',y:[32.02,32.04,31.89,31.89]},{ x:'11/28/2022',y:[31.52,31.52,31.43,31.43]},{ x:'11/29/2022',y:[31.16,31.23,31.10,31.21]},{ x:'11/30/2022',y:[30.89,30.89,30.78,30.83]},{ x:'12/01/2022',y:[32.00,32.02,31.84,31.91]},{ x:'12/02/2022',y:[32.03,32.07,31.94,31.95]},{ x:'12/05/2022',y:[31.89,31.89,31.69,31.72]},{ x:'12/06/2022',y:[31.28,31.34,31.25,31.30]},{ x:'12/07/2022',y:[30.67,30.77,30.67,30.75]},{ x:'12/08/2022',y:[30.46,30.53,30.36,30.50]},{ x:'12/09/2022',y:[31.00,31.20,31.00,31.17]},{ x:'12/12/2022',y:[30.93,30.96,30.90,30.96]},{ x:'12/13/2022',y:[31.51,31.56,31.47,31.50]},{ x:'12/14/2022',y:[32.16,32.29,32.16,32.26]},{ x:'12/15/2022',y:[32.05,32.05,31.83,31.89]},{ x:'12/16/2022',y:[30.88,30.89,30.75,30.77]},{ x:'12/19/2022',y:[30.54,30.58,30.51,30.53]},{ x:'12/20/2022',y:[29.89,29.92,29.40,29.43]},{ x:'12/21/2022',y:[29.89,30.03,29.86,29.94]},{ x:'12/22/2022',y:[30.33,30.41,30.30,30.35]},{ x:'12/23/2022',y:[29.47,29.61,29.42,29.60]},{ x:'12/26/2022',y:[29.81,29.81,29.50,29.64]},{ x:'12/27/2022',y:[29.75,29.86,29.75,29.77]},{ x:'12/28/2022',y:[29.03,29.10,29.01,29.06]},{ x:'12/29/2022',y:[28.81,28.84,28.77,28.82]},{ x:'12/30/2022',y:[29.52,29.59,29.50,29.56]},{ x:'01/03/2023',y:[29.56,29.67,29.50,29.64]},{ x:'01/04/2023',y:[29.62,29.68,29.60,29.67]},{ x:'01/05/2023',y:[30.03,30.10,29.96,30.06]},{ x:'01/06/2023',y:[29.70,29.81,29.70,29.75]},{ x:'01/09/2023',y:[30.38,30.40,30.27,30.33]},{ x:'01/10/2023',y:[30.61,30.69,30.58,30.62]},{ x:'01/11/2023',y:[31.16,31.18,31.05,31.05]},{ x:'01/12/2023',y:[31.54,31.57,31.45,31.48]},{ x:'01/13/2023',y:[31.78,31.79,31.56,31.58]},{ x:'01/16/2023',y:[31.83,31.84,31.75,31.80]},{ x:'01/17/2023',y:[31.69,31.69,31.66,31.66]},{ x:'01/30/2023',y:[33.60,34.00,33.48,33.84]},{ x:'01/31/2023',y:[33.54,33.54,33.00,33.02]},{ x:'02/01/2023',y:[33.50,33.50,33.41,33.48]},{ x:'02/02/2023',y:[34.98,35.22,34.98,35.21]},{ x:'02/03/2023',y:[36.04,36.12,35.98,36.09]},{ x:'02/06/2023',y:[36.06,36.06,35.56,35.60]},{ x:'02/07/2023',y:[35.84,35.84,35.37,35.38]},{ x:'02/08/2023',y:[36.05,36.18,36.00,36.15]},{ x:'02/09/2023',y:[35.78,35.82,35.69,35.79]},{ x:'02/10/2023',y:[35.24,35.28,35.19,35.24]},{ x:'02/13/2023',y:[34.81,34.82,34.68,34.77]},{ x:'02/14/2023',y:[35.55,35.55,35.49,35.50]},{ x:'02/15/2023',y:[35.95,36.05,35.93,35.94]},{ x:'02/16/2023',y:[36.63,36.74,36.61,36.71]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00762 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());