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/10/2023',y:[19.38,19.41,19.32,19.36]},{ x:'02/13/2023',y:[19.51,19.52,19.43,19.50]},{ x:'02/14/2023',y:[20.01,20.02,19.98,19.98]},{ x:'02/15/2023',y:[19.79,19.81,19.74,19.75]},{ x:'02/16/2023',y:[19.95,19.99,19.93,19.96]},{ x:'02/17/2023',y:[19.38,19.41,19.34,19.35]},{ x:'02/20/2023',y:[19.58,19.62,19.57,19.60]},{ x:'02/21/2023',y:[19.47,19.49,19.45,19.47]},{ x:'02/22/2023',y:[18.88,18.90,18.87,18.89]},{ x:'02/23/2023',y:[18.81,18.83,18.79,18.83]},{ x:'02/24/2023',y:[18.81,18.83,18.77,18.80]},{ x:'03/01/2023',y:[18.20,18.37,18.18,18.37]},{ x:'03/02/2023',y:[18.48,18.48,18.31,18.38]},{ x:'03/03/2023',y:[18.66,18.70,18.63,18.68]},{ x:'03/06/2023',y:[19.06,19.18,19.05,19.13]},{ x:'03/07/2023',y:[19.16,19.22,19.16,19.20]},{ x:'03/08/2023',y:[18.55,18.55,18.48,18.53]},{ x:'03/09/2023',y:[18.48,18.48,18.42,18.47]},{ x:'03/10/2023',y:[17.75,17.78,17.57,17.62]},{ x:'03/13/2023',y:[17.80,17.95,17.74,17.88]},{ x:'03/14/2023',y:[17.44,17.53,17.42,17.46]},{ x:'03/15/2023',y:[17.63,17.72,17.63,17.64]},{ x:'03/16/2023',y:[17.49,17.52,17.43,17.47]},{ 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]} ] }], 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());