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:[26.39,26.45,26.39,26.45]},{ x:'01/23/2024',y:[26.35,26.45,26.35,26.39]},{ x:'01/24/2024',y:[26.39,26.45,26.39,26.45]},{ x:'01/25/2024',y:[26.44,26.45,26.44,26.45]},{ x:'01/26/2024',y:[26.61,26.63,26.60,26.61]},{ x:'01/29/2024',y:[26.63,26.68,26.62,26.62]},{ x:'01/30/2024',y:[26.79,26.80,26.74,26.74]},{ x:'01/31/2024',y:[26.67,26.81,26.67,26.81]},{ x:'02/01/2024',y:[26.79,26.85,26.79,26.85]},{ x:'02/02/2024',y:[26.97,26.99,26.97,26.99]},{ x:'02/05/2024',y:[26.94,26.94,26.74,26.74]},{ x:'02/15/2024',y:[26.84,26.95,26.84,26.95]},{ x:'02/16/2024',y:[27.02,27.05,27.00,27.05]},{ x:'02/19/2024',y:[26.94,27.02,26.94,27.02]},{ x:'02/20/2024',y:[27.15,27.20,27.15,27.20]},{ x:'02/21/2024',y:[27.23,27.25,27.23,27.25]},{ x:'02/22/2024',y:[27.47,27.52,27.47,27.52]},{ x:'02/23/2024',y:[27.65,27.70,27.63,27.68]},{ x:'02/26/2024',y:[27.68,27.71,27.65,27.71]},{ x:'02/27/2024',y:[27.67,27.67,27.65,27.66]},{ x:'02/29/2024',y:[27.67,27.75,27.67,27.75]},{ x:'03/01/2024',y:[27.74,27.80,27.74,27.80]},{ x:'03/04/2024',y:[27.78,27.83,27.78,27.81]},{ x:'03/05/2024',y:[27.72,27.73,27.69,27.73]},{ x:'03/06/2024',y:[27.70,27.77,27.70,27.77]},{ x:'03/07/2024',y:[27.81,27.95,27.80,27.95]},{ x:'03/08/2024',y:[28.22,28.36,28.22,28.36]},{ x:'03/11/2024',y:[28.16,28.16,28.10,28.14]},{ x:'03/12/2024',y:[28.35,28.38,28.35,28.38]},{ x:'03/13/2024',y:[28.48,28.54,28.47,28.54]},{ x:'03/14/2024',y:[28.54,28.63,28.54,28.63]},{ x:'03/15/2024',y:[28.59,28.66,28.59,28.64]},{ x:'03/18/2024',y:[28.50,28.68,28.50,28.68]},{ x:'03/19/2024',y:[28.40,28.53,28.40,28.53]},{ x:'03/20/2024',y:[28.55,28.55,28.54,28.54]},{ x:'03/21/2024',y:[28.94,28.95,28.94,28.95]},{ x:'03/22/2024',y:[28.94,28.95,28.94,28.95]},{ x:'03/25/2024',y:[29.05,29.06,28.91,28.93]},{ x:'03/26/2024',y:[28.91,28.93,28.89,28.93]},{ x:'03/27/2024',y:[29.04,29.12,29.04,29.12]},{ x:'03/28/2024',y:[29.19,29.20,29.19,29.19]},{ x:'03/29/2024',y:[29.25,29.25,29.23,29.23]},{ x:'04/01/2024',y:[28.98,29.14,28.98,29.14]},{ x:'04/02/2024',y:[29.02,29.05,29.02,29.05]},{ x:'04/03/2024',y:[28.85,28.85,28.72,28.72]},{ x:'04/08/2024',y:[28.77,28.86,28.58,28.59]},{ x:'04/09/2024',y:[28.86,29.00,28.85,28.90]},{ x:'04/10/2024',y:[28.94,28.96,28.88,28.95]},{ x:'04/11/2024',y:[28.86,28.86,28.83,28.83]},{ x:'04/12/2024',y:[28.74,28.76,28.74,28.76]},{ x:'04/15/2024',y:[28.58,28.60,28.58,28.58]},{ x:'04/16/2024',y:[28.30,28.30,28.17,28.23]},{ x:'04/17/2024',y:[28.39,28.39,28.25,28.25]},{ x:'04/18/2024',y:[28.25,28.28,28.25,28.28]},{ x:'04/19/2024',y:[27.88,28.02,27.64,27.98]},{ x:'04/22/2024',y:[28.32,28.43,28.32,28.43]},{ x:'04/23/2024',y:[28.85,28.85,28.84,28.85]},{ x:'04/24/2024',y:[29.03,29.05,29.01,29.05]},{ x:'04/25/2024',y:[28.88,28.88,28.84,28.84]},{ x:'04/26/2024',y:[29.00,29.04,29.00,29.03]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00709 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());