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:'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]},{ x:'04/20/2023',y:[36.78,36.84,36.72,36.80]},{ x:'04/21/2023',y:[36.35,36.37,36.27,36.32]},{ x:'04/24/2023',y:[36.22,36.22,36.10,36.10]},{ x:'04/25/2023',y:[36.00,36.14,36.00,36.00]},{ x:'04/26/2023',y:[35.77,35.77,35.55,35.59]},{ x:'04/27/2023',y:[35.71,35.86,35.69,35.86]},{ x:'04/28/2023',y:[36.15,36.36,36.15,36.35]},{ x:'05/02/2023',y:[36.49,36.49,36.33,36.43]},{ x:'05/03/2023',y:[35.94,35.94,35.76,35.79]},{ x:'05/04/2023',y:[35.53,35.71,35.52,35.70]},{ x:'05/05/2023',y:[35.81,35.81,35.71,35.75]},{ x:'05/08/2023',y:[36.16,36.29,36.16,36.28]},{ x:'05/09/2023',y:[36.66,36.76,36.65,36.69]},{ x:'05/10/2023',y:[36.56,36.56,36.46,36.48]},{ x:'05/11/2023',y:[37.02,37.11,37.02,37.08]},{ x:'05/12/2023',y:[36.90,37.04,36.90,37.04]},{ x:'05/15/2023',y:[37.03,37.03,36.78,36.86]},{ x:'05/16/2023',y:[37.60,37.69,37.60,37.63]},{ x:'05/17/2023',y:[37.68,37.72,37.67,37.68]},{ x:'05/18/2023',y:[38.26,38.32,38.24,38.28]},{ x:'05/19/2023',y:[39.24,39.30,39.14,39.27]} ] }], 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());