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/04/2023',y:[19.03,19.11,19.03,19.09]},{ x:'01/05/2023',y:[19.18,19.21,19.09,19.20]},{ x:'01/06/2023',y:[18.92,18.99,18.91,18.95]},{ x:'01/09/2023',y:[19.71,19.71,19.64,19.71]},{ x:'01/10/2023',y:[19.37,19.42,19.31,19.38]},{ x:'01/11/2023',y:[19.69,19.70,19.65,19.70]},{ x:'01/12/2023',y:[19.91,19.98,19.91,19.98]},{ x:'01/13/2023',y:[20.19,20.20,20.08,20.09]},{ x:'01/16/2023',y:[20.30,20.33,20.26,20.30]},{ x:'01/17/2023',y:[20.26,20.26,20.17,20.17]},{ x:'01/30/2023',y:[19.78,19.78,19.66,19.69]},{ x:'01/31/2023',y:[19.49,19.50,19.40,19.46]},{ x:'02/01/2023',y:[19.76,19.80,19.75,19.78]},{ x:'02/02/2023',y:[19.80,19.80,19.68,19.73]},{ x:'02/03/2023',y:[19.67,19.74,19.66,19.73]},{ x:'02/06/2023',y:[19.51,19.54,19.47,19.47]},{ x:'02/07/2023',y:[19.66,19.67,19.60,19.61]},{ x:'02/08/2023',y:[19.87,19.92,19.85,19.90]},{ x:'02/09/2023',y:[19.77,19.81,19.74,19.81]},{ 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]} ] }], 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());