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:[25.70,25.75,25.55,25.62]},{ x:'01/23/2024',y:[25.13,25.66,25.13,25.65]},{ x:'01/24/2024',y:[25.72,25.99,25.45,25.48]},{ x:'01/25/2024',y:[26.30,26.48,26.10,26.48]},{ x:'01/26/2024',y:[26.47,26.51,26.30,26.40]},{ x:'01/29/2024',y:[26.50,26.65,26.39,26.47]},{ x:'01/30/2024',y:[26.40,26.40,25.90,26.08]},{ x:'01/31/2024',y:[26.00,26.00,25.66,25.85]},{ x:'02/01/2024',y:[25.90,26.08,25.70,25.95]},{ x:'02/02/2024',y:[25.93,25.93,25.50,25.59]},{ x:'02/05/2024',y:[25.59,25.88,25.27,25.86]},{ x:'02/15/2024',y:[26.99,26.99,26.47,26.70]},{ x:'02/16/2024',y:[26.80,27.15,26.75,27.14]},{ x:'02/19/2024',y:[27.20,27.29,26.87,27.00]},{ x:'02/20/2024',y:[27.00,27.16,27.00,27.09]},{ x:'02/21/2024',y:[27.15,27.99,27.10,27.97]},{ x:'02/22/2024',y:[27.95,28.06,27.78,28.06]},{ x:'02/23/2024',y:[28.06,28.25,28.00,28.08]},{ x:'02/26/2024',y:[28.18,28.19,27.69,28.07]},{ x:'02/27/2024',y:[27.85,27.85,27.59,27.81]},{ x:'02/29/2024',y:[27.72,27.92,27.45,27.79]},{ x:'03/01/2024',y:[27.72,27.84,27.70,27.79]},{ x:'03/04/2024',y:[27.91,27.91,27.73,27.84]},{ x:'03/05/2024',y:[27.80,28.02,27.68,27.98]},{ x:'03/06/2024',y:[27.99,28.27,27.99,28.19]},{ x:'03/07/2024',y:[28.15,28.19,27.95,27.95]},{ x:'03/08/2024',y:[28.19,28.19,27.72,27.75]},{ x:'03/11/2024',y:[27.75,28.20,27.75,28.05]},{ x:'03/12/2024',y:[28.05,28.34,28.05,28.34]},{ x:'03/13/2024',y:[28.34,28.34,27.88,27.95]},{ x:'03/14/2024',y:[27.86,28.25,27.86,28.00]},{ x:'03/15/2024',y:[28.00,28.00,27.81,27.87]},{ x:'03/18/2024',y:[27.87,28.20,27.87,28.09]},{ x:'03/19/2024',y:[28.45,28.45,28.03,28.12]},{ x:'03/20/2024',y:[28.14,28.25,27.91,28.15]},{ x:'03/21/2024',y:[28.20,28.28,28.12,28.12]},{ x:'03/22/2024',y:[28.20,28.20,27.65,27.85]},{ x:'03/25/2024',y:[27.85,28.03,27.72,27.87]},{ x:'03/26/2024',y:[27.87,27.94,27.73,27.87]},{ x:'03/27/2024',y:[27.87,27.95,27.82,27.82]},{ x:'03/28/2024',y:[27.82,28.05,27.73,27.96]},{ x:'03/29/2024',y:[27.90,28.05,27.87,27.87]},{ x:'04/01/2024',y:[28.05,28.40,28.05,28.32]},{ x:'04/02/2024',y:[28.33,28.40,28.24,28.24]},{ x:'04/03/2024',y:[28.24,28.24,28.07,28.20]},{ x:'04/08/2024',y:[28.30,28.35,27.83,28.20]},{ x:'04/09/2024',y:[28.10,28.15,27.93,27.94]},{ x:'04/10/2024',y:[27.92,28.05,27.84,27.90]},{ x:'04/11/2024',y:[27.81,27.93,27.71,27.92]},{ x:'04/12/2024',y:[27.81,27.95,27.78,27.85]},{ x:'04/15/2024',y:[27.84,28.32,27.54,28.29]},{ x:'04/16/2024',y:[28.25,28.57,28.15,28.37]},{ x:'04/17/2024',y:[28.37,28.37,28.17,28.22]},{ x:'04/18/2024',y:[28.41,28.85,28.41,28.70]},{ x:'04/19/2024',y:[28.69,28.69,28.46,28.53]},{ x:'04/22/2024',y:[28.52,28.78,28.52,28.60]},{ x:'04/23/2024',y:[28.60,28.64,28.43,28.61]},{ x:'04/24/2024',y:[28.61,28.61,28.37,28.49]},{ x:'04/25/2024',y:[28.49,28.66,28.40,28.56]},{ x:'04/26/2024',y:[28.57,28.95,28.57,28.95]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006206 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());