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:'03/17/2023',y:[17.71,17.80,17.70,17.78]},{ x:'03/20/2023',y:[17.56,17.56,17.27,17.31]},{ x:'03/21/2023',y:[17.78,17.82,17.75,17.77]},{ x:'03/22/2023',y:[18.05,18.09,18.04,18.09]},{ x:'03/23/2023',y:[17.57,17.68,17.56,17.67]},{ x:'03/24/2023',y:[17.59,17.65,17.52,17.65]},{ x:'03/27/2023',y:[17.81,17.86,17.79,17.83]},{ x:'03/28/2023',y:[17.93,17.95,17.89,17.91]},{ x:'03/29/2023',y:[17.93,17.99,17.93,17.98]},{ x:'03/30/2023',y:[18.16,18.21,18.13,18.21]},{ x:'03/31/2023',y:[18.40,18.41,18.36,18.36]},{ x:'04/06/2023',y:[18.95,18.96,18.92,18.92]},{ x:'04/07/2023',y:[18.97,18.97,18.95,18.97]},{ x:'04/10/2023',y:[19.05,19.05,19.01,19.02]},{ x:'04/11/2023',y:[19.12,19.17,19.12,19.13]},{ x:'04/12/2023',y:[19.23,19.26,19.23,19.23]},{ x:'04/13/2023',y:[19.12,19.19,19.12,19.17]},{ x:'04/14/2023',y:[19.55,19.56,19.52,19.52]},{ x:'04/17/2023',y:[19.50,19.52,19.49,19.51]},{ x:'04/18/2023',y:[19.52,19.57,19.52,19.53]},{ x:'04/19/2023',y:[19.51,19.51,19.46,19.46]},{ x:'04/20/2023',y:[19.39,19.45,19.39,19.40]},{ x:'04/21/2023',y:[19.32,19.32,19.27,19.27]},{ x:'04/24/2023',y:[19.27,19.29,19.22,19.24]},{ x:'04/25/2023',y:[19.41,19.42,19.33,19.33]},{ x:'04/26/2023',y:[19.10,19.11,19.07,19.09]},{ x:'04/27/2023',y:[18.82,18.85,18.80,18.85]},{ x:'04/28/2023',y:[19.29,19.35,19.29,19.30]},{ x:'05/02/2023',y:[19.55,19.62,19.55,19.62]},{ x:'05/03/2023',y:[19.24,19.27,19.22,19.26]},{ x:'05/04/2023',y:[18.78,18.94,18.77,18.94]},{ x:'05/05/2023',y:[18.60,18.63,18.58,18.62]},{ x:'05/08/2023',y:[19.08,19.11,19.07,19.09]},{ x:'05/09/2023',y:[19.02,19.07,19.02,19.07]},{ x:'05/10/2023',y:[19.04,19.07,19.03,19.04]},{ x:'05/11/2023',y:[19.02,19.03,19.00,19.03]},{ x:'05/12/2023',y:[18.78,18.79,18.75,18.79]},{ x:'05/15/2023',y:[18.67,18.79,18.66,18.79]},{ x:'05/16/2023',y:[18.76,18.76,18.70,18.71]},{ x:'05/17/2023',y:[18.46,18.49,18.46,18.47]},{ x:'05/18/2023',y:[18.83,18.83,18.79,18.82]},{ x:'05/19/2023',y:[19.01,19.06,19.00,19.05]},{ x:'05/22/2023',y:[18.85,18.85,18.80,18.84]},{ x:'05/23/2023',y:[18.80,18.82,18.74,18.75]},{ x:'05/24/2023',y:[18.51,18.53,18.49,18.53]},{ x:'05/25/2023',y:[18.12,18.13,18.05,18.11]},{ x:'05/26/2023',y:[18.12,18.12,18.06,18.11]},{ x:'05/29/2023',y:[18.55,18.56,18.50,18.51]},{ x:'05/30/2023',y:[18.51,18.51,18.46,18.50]},{ x:'05/31/2023',y:[18.36,18.36,18.28,18.28]},{ x:'06/01/2023',y:[18.25,18.31,18.21,18.31]},{ x:'06/02/2023',y:[18.45,18.50,18.44,18.50]},{ x:'06/05/2023',y:[19.22,19.25,19.20,19.22]},{ x:'06/06/2023',y:[18.96,19.01,18.95,19.01]},{ x:'06/07/2023',y:[19.00,19.01,18.95,19.00]},{ x:'06/08/2023',y:[19.08,19.09,19.00,19.04]},{ x:'06/09/2023',y:[19.22,19.23,19.19,19.23]},{ x:'06/12/2023',y:[19.31,19.33,19.28,19.32]},{ x:'06/13/2023',y:[19.46,19.54,19.46,19.53]},{ x:'06/14/2023',y:[19.55,19.58,19.53,19.58]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00852l 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());