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:[7.29,7.45,7.29,7.43]},{ x:'01/23/2024',y:[7.45,7.48,7.45,7.48]},{ x:'01/24/2024',y:[7.48,7.49,7.46,7.46]},{ x:'01/25/2024',y:[7.43,7.48,7.40,7.41]},{ x:'01/26/2024',y:[7.41,7.43,7.39,7.40]},{ x:'01/29/2024',y:[7.31,7.48,7.31,7.47]},{ x:'01/30/2024',y:[7.48,7.49,7.45,7.46]},{ x:'01/31/2024',y:[7.42,7.42,7.41,7.41]},{ x:'02/01/2024',y:[7.41,7.48,7.41,7.48]},{ x:'02/02/2024',y:[7.48,7.58,7.48,7.57]},{ x:'02/05/2024',y:[7.00,7.62,7.00,7.62]},{ x:'02/15/2024',y:[7.62,7.71,7.62,7.65]},{ x:'02/16/2024',y:[7.65,7.72,7.64,7.68]},{ x:'02/19/2024',y:[7.68,7.75,7.68,7.72]},{ x:'02/20/2024',y:[7.70,7.71,7.67,7.70]},{ x:'02/21/2024',y:[7.70,7.71,7.67,7.67]},{ x:'02/22/2024',y:[7.75,7.78,7.71,7.72]},{ x:'02/23/2024',y:[7.75,7.81,7.73,7.74]},{ x:'02/26/2024',y:[7.75,7.77,7.74,7.75]},{ x:'02/27/2024',y:[7.75,7.78,7.64,7.70]},{ x:'02/29/2024',y:[7.70,7.80,7.70,7.80]},{ x:'03/01/2024',y:[7.80,7.87,7.80,7.85]},{ x:'03/04/2024',y:[7.85,7.93,7.85,7.89]},{ x:'03/05/2024',y:[7.80,7.97,7.80,7.97]},{ x:'03/06/2024',y:[7.89,7.99,7.89,7.97]},{ x:'03/07/2024',y:[7.99,8.01,7.88,7.95]},{ x:'03/08/2024',y:[7.95,8.02,7.88,7.91]},{ x:'03/11/2024',y:[8.00,8.02,7.95,7.99]},{ x:'03/12/2024',y:[8.00,8.18,8.00,8.17]},{ x:'03/13/2024',y:[8.22,8.24,8.14,8.16]},{ x:'03/14/2024',y:[8.16,8.18,8.08,8.13]},{ x:'03/15/2024',y:[8.13,8.26,8.13,8.23]},{ x:'03/18/2024',y:[8.25,8.33,8.25,8.32]},{ x:'03/19/2024',y:[8.32,8.45,8.30,8.43]},{ x:'03/20/2024',y:[8.44,8.52,8.41,8.43]},{ x:'03/21/2024',y:[8.45,8.68,8.45,8.66]},{ x:'03/22/2024',y:[8.70,8.76,8.65,8.73]},{ x:'03/25/2024',y:[8.73,8.80,8.70,8.76]},{ x:'03/26/2024',y:[8.77,8.79,8.55,8.69]},{ x:'03/27/2024',y:[8.69,8.73,8.65,8.67]},{ x:'03/28/2024',y:[8.73,8.77,8.70,8.76]},{ x:'03/29/2024',y:[8.88,8.88,8.68,8.70]},{ x:'04/01/2024',y:[8.70,8.71,8.65,8.66]},{ x:'04/02/2024',y:[8.64,8.79,8.64,8.79]},{ x:'04/03/2024',y:[8.78,8.83,8.71,8.78]},{ x:'04/08/2024',y:[8.81,8.90,8.81,8.83]},{ x:'04/09/2024',y:[8.89,8.89,8.81,8.86]},{ x:'04/10/2024',y:[8.93,8.93,8.79,8.80]},{ x:'04/11/2024',y:[8.80,8.80,8.64,8.67]},{ x:'04/12/2024',y:[8.72,8.82,8.71,8.78]},{ x:'04/15/2024',y:[8.74,8.74,8.59,8.61]},{ x:'04/16/2024',y:[8.48,8.48,8.25,8.31]},{ x:'04/17/2024',y:[8.35,8.56,8.35,8.56]},{ x:'04/18/2024',y:[8.56,8.66,8.56,8.66]},{ x:'04/19/2024',y:[8.59,8.59,8.25,8.43]},{ x:'04/22/2024',y:[7.75,8.50,7.75,8.34]},{ x:'04/23/2024',y:[8.43,8.43,8.28,8.32]},{ x:'04/24/2024',y:[8.47,8.60,8.47,8.60]},{ x:'04/25/2024',y:[8.55,8.55,8.50,8.53]},{ x:'04/26/2024',y:[8.68,8.68,8.61,8.62]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020028 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());