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:'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]},{ x:'03/22/2023',y:[36.30,36.33,36.29,36.31]},{ x:'03/23/2023',y:[35.74,35.78,35.60,35.76]},{ x:'03/24/2023',y:[36.13,36.29,36.12,36.29]},{ x:'03/27/2023',y:[36.18,36.18,36.07,36.17]},{ x:'03/28/2023',y:[35.89,35.89,35.78,35.78]},{ x:'03/29/2023',y:[35.46,35.50,35.40,35.50]},{ x:'03/30/2023',y:[36.12,36.21,36.10,36.20]},{ x:'03/31/2023',y:[36.62,36.73,36.62,36.69]},{ x:'04/06/2023',y:[36.30,36.35,36.21,36.30]},{ x:'04/07/2023',y:[36.75,36.76,36.66,36.66]},{ x:'04/10/2023',y:[36.72,36.72,36.66,36.66]},{ x:'04/11/2023',y:[37.02,37.08,36.98,37.05]},{ x:'04/12/2023',y:[37.04,37.10,37.01,37.05]},{ x:'04/13/2023',y:[36.81,36.81,36.70,36.74]},{ x:'04/14/2023',y:[36.88,36.97,36.86,36.87]},{ x:'04/17/2023',y:[36.87,37.03,36.87,36.99]},{ x:'04/18/2023',y:[37.05,37.06,36.98,37.00]},{ x:'04/19/2023',y:[37.09,37.09,36.96,36.96]} ] }], 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());