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:'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]},{ x:'02/17/2023',y:[35.83,35.83,35.60,35.63]},{ x:'02/20/2023',y:[35.14,35.35,35.13,35.35]},{ x:'02/21/2023',y:[35.13,35.28,35.11,35.19]},{ x:'02/22/2023',y:[34.87,34.87,34.55,34.58]},{ x:'02/23/2023',y:[34.70,34.76,34.69,34.71]},{ x:'02/24/2023',y:[35.04,35.08,34.97,35.07]},{ x:'03/01/2023',y:[35.07,35.60,34.64,34.91]},{ x:'03/02/2023',y:[34.73,34.73,34.17,34.23]},{ x:'03/03/2023',y:[34.50,34.55,34.42,34.55]},{ x:'03/06/2023',y:[35.20,35.40,35.17,35.36]},{ x:'03/07/2023',y:[35.23,35.29,35.20,35.26]},{ x:'03/08/2023',y:[34.92,34.97,34.90,34.97]},{ x:'03/09/2023',y:[35.37,35.37,35.29,35.36]},{ x:'03/10/2023',y:[34.57,34.60,34.45,34.53]},{ x:'03/13/2023',y:[34.45,34.46,34.19,34.44]},{ x:'03/14/2023',y:[34.03,34.03,33.88,33.88]},{ x:'03/15/2023',y:[34.82,34.87,34.70,34.75]},{ x:'03/16/2023',y:[35.13,35.22,35.06,35.15]},{ x:'03/17/2023',y:[36.06,36.06,35.91,35.96]},{ x:'03/20/2023',y:[36.00,36.04,35.80,35.82]},{ x:'03/21/2023',y:[35.90,35.95,35.86,35.92]} ] }], 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());