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/22/2024',y:[27.51,27.51,27.45,27.46]},{ x:'01/23/2024',y:[27.45,27.45,27.37,27.45]},{ x:'01/24/2024',y:[27.59,27.61,27.58,27.60]},{ x:'01/25/2024',y:[27.34,27.34,27.18,27.20]},{ x:'01/26/2024',y:[27.40,27.46,27.35,27.35]},{ x:'01/29/2024',y:[27.38,27.39,27.36,27.37]},{ x:'01/30/2024',y:[27.71,27.76,27.69,27.76]},{ x:'01/31/2024',y:[27.55,27.66,27.53,27.66]},{ x:'02/01/2024',y:[27.32,27.39,27.32,27.37]},{ x:'02/02/2024',y:[27.55,27.59,27.54,27.54]},{ x:'02/05/2024',y:[27.12,27.24,27.12,27.20]},{ x:'02/15/2024',y:[27.42,27.42,27.17,27.31]},{ x:'02/16/2024',y:[27.64,27.70,27.63,27.66]},{ x:'02/19/2024',y:[27.62,27.62,27.56,27.59]},{ x:'02/20/2024',y:[27.45,27.54,27.45,27.54]},{ x:'02/21/2024',y:[27.53,27.53,27.50,27.53]},{ x:'02/22/2024',y:[27.66,27.67,27.64,27.66]},{ x:'02/23/2024',y:[27.91,27.97,27.91,27.97]},{ x:'02/26/2024',y:[28.11,28.13,28.05,28.12]},{ x:'02/27/2024',y:[28.40,28.44,28.39,28.41]},{ x:'02/29/2024',y:[28.41,28.61,28.41,28.56]},{ x:'03/01/2024',y:[27.80,27.82,27.71,27.75]},{ x:'03/04/2024',y:[28.27,28.27,28.16,28.18]},{ x:'03/05/2024',y:[27.88,27.88,27.79,27.83]},{ x:'03/06/2024',y:[27.83,27.83,27.77,27.81]},{ x:'03/07/2024',y:[27.64,27.71,27.61,27.70]},{ x:'03/08/2024',y:[27.70,27.77,27.70,27.71]},{ x:'03/11/2024',y:[27.82,27.83,27.79,27.79]},{ x:'03/12/2024',y:[27.86,27.92,27.86,27.92]},{ x:'03/13/2024',y:[27.70,27.73,27.70,27.72]},{ x:'03/14/2024',y:[27.89,27.89,27.84,27.86]},{ x:'03/15/2024',y:[27.34,27.44,27.34,27.44]},{ x:'03/18/2024',y:[27.40,27.54,27.40,27.54]},{ x:'03/19/2024',y:[27.37,27.42,27.31,27.42]},{ x:'03/20/2024',y:[27.59,27.62,27.58,27.60]},{ x:'03/21/2024',y:[27.89,27.92,27.83,27.92]},{ x:'03/22/2024',y:[28.00,28.02,27.98,28.01]},{ x:'03/25/2024',y:[27.87,27.91,27.72,27.73]},{ x:'03/26/2024',y:[27.79,27.86,27.77,27.86]},{ x:'03/27/2024',y:[27.87,27.94,27.87,27.92]},{ x:'03/28/2024',y:[28.25,28.25,28.14,28.18]},{ x:'03/29/2024',y:[28.17,28.18,28.17,28.17]},{ x:'04/01/2024',y:[28.20,28.21,28.19,28.19]},{ x:'04/02/2024',y:[27.94,27.99,27.94,27.95]},{ x:'04/03/2024',y:[27.36,27.40,27.30,27.30]},{ x:'04/08/2024',y:[27.24,27.24,27.21,27.24]},{ x:'04/09/2024',y:[27.31,27.31,27.24,27.29]},{ x:'04/10/2024',y:[27.59,27.59,27.52,27.55]},{ x:'04/11/2024',y:[27.11,27.23,27.11,27.22]},{ x:'04/12/2024',y:[27.33,27.41,27.32,27.41]},{ x:'04/15/2024',y:[26.98,27.03,26.97,27.03]},{ x:'04/16/2024',y:[26.69,26.79,26.69,26.79]},{ x:'04/17/2024',y:[26.64,26.64,26.60,26.61]},{ x:'04/18/2024',y:[26.39,26.39,26.34,26.35]},{ x:'04/19/2024',y:[26.19,26.19,25.99,26.02]},{ x:'04/22/2024',y:[26.32,26.49,26.32,26.49]},{ x:'04/23/2024',y:[26.64,26.66,26.60,26.63]},{ x:'04/24/2024',y:[26.97,27.01,26.97,27.01]},{ x:'04/25/2024',y:[27.04,27.04,26.94,26.94]},{ x:'04/26/2024',y:[26.57,26.57,26.49,26.53]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00678 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());