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.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]},{ x:'05/23/2023',y:[18.67,18.71,18.66,18.69]},{ x:'05/24/2023',y:[18.64,18.64,18.62,18.64]},{ x:'05/25/2023',y:[18.79,18.81,18.78,18.81]},{ x:'05/26/2023',y:[18.86,18.86,18.83,18.83]},{ x:'05/29/2023',y:[18.80,18.80,18.70,18.75]},{ x:'05/30/2023',y:[18.62,18.62,18.55,18.57]},{ x:'05/31/2023',y:[18.53,18.53,18.50,18.51]},{ x:'06/01/2023',y:[18.39,18.47,18.39,18.47]},{ x:'06/02/2023',y:[18.30,18.33,18.30,18.33]},{ x:'06/05/2023',y:[18.53,18.58,18.53,18.58]},{ x:'06/06/2023',y:[18.53,18.53,18.52,18.53]},{ x:'06/07/2023',y:[18.34,18.37,18.33,18.34]},{ x:'06/08/2023',y:[18.69,18.72,18.68,18.69]},{ x:'06/09/2023',y:[18.58,18.58,18.52,18.52]},{ x:'06/12/2023',y:[18.47,18.54,18.47,18.54]},{ x:'06/13/2023',y:[18.46,18.46,18.43,18.46]},{ x:'06/14/2023',y:[18.58,18.61,18.58,18.60]} ] }], 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());