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/20/2023',y:[18.47,18.52,18.47,18.48]},{ x:'02/21/2023',y:[18.49,18.56,18.49,18.54]},{ x:'02/22/2023',y:[18.77,18.78,18.73,18.78]},{ x:'02/23/2023',y:[18.66,18.67,18.63,18.65]},{ x:'02/24/2023',y:[18.46,18.51,18.44,18.47]},{ x:'03/01/2023',y:[18.68,18.74,18.68,18.72]},{ x:'03/02/2023',y:[18.80,18.86,18.80,18.86]},{ x:'03/03/2023',y:[18.93,18.96,18.90,18.92]},{ x:'03/06/2023',y:[18.58,18.58,18.48,18.52]},{ x:'03/07/2023',y:[18.64,18.65,18.58,18.58]},{ x:'03/08/2023',y:[18.64,18.71,18.64,18.70]},{ x:'03/09/2023',y:[18.60,18.70,18.59,18.70]},{ x:'03/10/2023',y:[18.43,18.47,18.29,18.32]},{ x:'03/13/2023',y:[18.14,18.21,18.05,18.18]},{ x:'03/14/2023',y:[17.82,17.88,17.77,17.80]},{ x:'03/15/2023',y:[18.05,18.09,18.00,18.04]},{ x:'03/16/2023',y:[17.74,17.74,17.64,17.72]},{ x:'03/17/2023',y:[17.92,17.93,17.81,17.83]},{ x:'03/20/2023',y:[17.76,17.82,17.64,17.64]},{ x:'03/21/2023',y:[17.77,17.77,17.72,17.74]},{ x:'03/22/2023',y:[17.93,17.95,17.89,17.93]},{ x:'03/23/2023',y:[17.80,17.80,17.74,17.76]},{ x:'03/24/2023',y:[17.79,17.80,17.72,17.74]},{ x:'03/27/2023',y:[17.63,17.64,17.57,17.62]},{ x:'03/28/2023',y:[17.96,17.98,17.93,17.94]},{ x:'03/29/2023',y:[18.00,18.08,18.00,18.02]},{ x:'03/30/2023',y:[18.03,18.09,18.03,18.09]},{ x:'03/31/2023',y:[17.98,18.02,17.97,18.00]},{ x:'04/06/2023',y:[17.40,17.46,17.40,17.44]},{ x:'04/07/2023',y:[17.43,17.44,17.40,17.44]},{ x:'04/10/2023',y:[17.53,17.53,17.50,17.50]},{ x:'04/11/2023',y:[17.58,17.61,17.57,17.61]},{ x:'04/12/2023',y:[17.61,17.65,17.61,17.64]},{ x:'04/13/2023',y:[17.63,17.66,17.62,17.65]},{ x:'04/14/2023',y:[17.78,17.78,17.71,17.72]},{ x:'04/17/2023',y:[17.94,17.94,17.88,17.88]},{ x:'04/18/2023',y:[18.13,18.16,18.10,18.13]},{ x:'04/19/2023',y:[18.08,18.12,18.07,18.08]},{ x:'04/20/2023',y:[18.16,18.16,18.10,18.13]},{ x:'04/21/2023',y:[17.97,17.98,17.94,17.95]},{ x:'04/24/2023',y:[18.06,18.07,18.05,18.07]},{ x:'04/25/2023',y:[17.89,17.91,17.87,17.88]},{ x:'04/26/2023',y:[17.76,17.76,17.70,17.74]},{ x:'04/27/2023',y:[17.83,17.88,17.83,17.88]},{ x:'04/28/2023',y:[18.02,18.06,17.97,17.99]},{ x:'05/02/2023',y:[18.13,18.15,18.11,18.14]},{ x:'05/03/2023',y:[17.89,17.90,17.87,17.88]},{ x:'05/04/2023',y:[17.71,17.77,17.71,17.73]},{ x:'05/05/2023',y:[17.85,17.88,17.85,17.88]},{ x:'05/08/2023',y:[17.95,17.96,17.92,17.92]},{ x:'05/09/2023',y:[18.15,18.15,18.09,18.11]},{ x:'05/10/2023',y:[18.18,18.20,18.18,18.19]},{ x:'05/11/2023',y:[18.08,18.10,18.05,18.09]},{ x:'05/12/2023',y:[17.88,17.94,17.88,17.92]},{ x:'05/15/2023',y:[18.06,18.09,18.06,18.09]},{ x:'05/16/2023',y:[18.22,18.23,18.19,18.20]},{ x:'05/17/2023',y:[18.29,18.30,18.27,18.27]},{ x:'05/18/2023',y:[18.27,18.32,18.26,18.32]},{ x:'05/19/2023',y:[18.48,18.50,18.44,18.46]},{ x:'05/22/2023',y:[18.50,18.55,18.50,18.55]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00681r 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());