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/30/2023',y:[26.47,26.55,26.40,26.53]},{ x:'01/31/2023',y:[26.55,26.68,26.53,26.54]},{ x:'02/01/2023',y:[26.60,26.68,26.59,26.67]},{ x:'02/02/2023',y:[26.81,27.00,26.78,26.99]},{ x:'02/03/2023',y:[27.00,27.05,26.85,27.00]},{ x:'02/06/2023',y:[26.98,26.98,26.85,26.92]},{ x:'02/07/2023',y:[26.91,26.96,26.85,26.94]},{ x:'02/08/2023',y:[27.03,27.17,27.02,27.15]},{ x:'02/09/2023',y:[27.14,27.17,27.04,27.15]},{ x:'02/10/2023',y:[27.15,27.15,26.97,27.02]},{ x:'02/13/2023',y:[26.99,27.01,26.82,26.97]},{ x:'02/14/2023',y:[27.01,27.15,27.01,27.13]},{ x:'02/15/2023',y:[27.13,27.16,27.03,27.05]},{ x:'02/16/2023',y:[27.07,27.35,27.07,27.33]},{ x:'02/17/2023',y:[27.23,27.25,27.17,27.24]},{ x:'02/20/2023',y:[27.27,27.42,27.25,27.41]},{ x:'02/21/2023',y:[27.41,27.55,27.36,27.53]},{ x:'02/22/2023',y:[27.38,27.42,27.24,27.40]},{ x:'02/23/2023',y:[27.40,27.78,27.40,27.74]},{ x:'02/24/2023',y:[27.77,27.85,27.65,27.67]},{ x:'03/01/2023',y:[27.58,27.72,27.42,27.72]},{ x:'03/02/2023',y:[27.73,27.79,27.57,27.78]},{ x:'03/03/2023',y:[27.85,28.00,27.85,27.95]},{ x:'03/06/2023',y:[28.07,28.30,28.07,28.25]},{ x:'03/07/2023',y:[28.29,28.40,28.20,28.38]},{ x:'03/08/2023',y:[28.29,28.37,28.18,28.37]},{ x:'03/09/2023',y:[28.37,28.38,28.21,28.24]},{ x:'03/10/2023',y:[28.00,28.01,27.83,27.86]},{ x:'03/13/2023',y:[27.70,27.96,27.55,27.93]},{ x:'03/14/2023',y:[27.73,27.79,27.60,27.66]},{ x:'03/15/2023',y:[27.81,27.92,27.66,27.66]},{ x:'03/16/2023',y:[27.57,27.60,27.40,27.50]},{ x:'03/17/2023',y:[27.55,27.76,27.54,27.76]},{ x:'03/20/2023',y:[27.77,27.81,27.70,27.76]},{ x:'03/21/2023',y:[27.80,27.90,27.80,27.84]},{ x:'03/22/2023',y:[27.91,28.08,27.91,28.05]},{ x:'03/23/2023',y:[28.03,28.21,28.03,28.12]},{ x:'03/24/2023',y:[28.16,28.28,28.12,28.26]},{ x:'03/27/2023',y:[28.26,28.37,28.20,28.31]},{ x:'03/28/2023',y:[28.31,28.33,28.05,28.06]},{ x:'03/29/2023',y:[28.06,28.23,28.05,28.15]},{ x:'03/30/2023',y:[28.28,28.32,28.20,28.29]},{ x:'03/31/2023',y:[28.37,28.55,28.37,28.43]},{ x:'04/06/2023',y:[28.43,28.47,28.28,28.47]},{ x:'04/07/2023',y:[28.48,28.52,28.41,28.43]},{ x:'04/10/2023',y:[28.45,28.52,28.42,28.50]},{ x:'04/11/2023',y:[28.50,28.72,28.50,28.70]},{ x:'04/12/2023',y:[28.70,28.85,28.70,28.85]},{ x:'04/13/2023',y:[28.85,28.85,28.70,28.71]},{ x:'04/14/2023',y:[28.71,28.76,28.64,28.74]},{ x:'04/17/2023',y:[28.74,28.82,28.72,28.80]},{ x:'04/18/2023',y:[28.83,28.85,28.61,28.67]},{ x:'04/19/2023',y:[28.67,28.74,28.53,28.55]},{ x:'04/20/2023',y:[28.48,28.52,28.37,28.43]},{ x:'04/21/2023',y:[28.43,28.50,28.16,28.19]},{ x:'04/24/2023',y:[28.18,28.31,28.08,28.27]},{ x:'04/25/2023',y:[28.30,28.33,27.74,27.80]},{ x:'04/26/2023',y:[27.70,27.84,27.61,27.84]},{ x:'04/27/2023',y:[27.85,28.11,27.77,28.02]},{ x:'04/28/2023',y:[28.18,28.25,28.13,28.23]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0056 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());