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:'03/27/2024',y:[7.74,7.77,7.72,7.76]},{ x:'03/28/2024',y:[7.76,7.80,7.74,7.76]},{ x:'03/29/2024',y:[7.76,7.78,7.73,7.74]},{ x:'04/01/2024',y:[7.74,7.85,7.73,7.75]},{ x:'04/02/2024',y:[7.74,7.77,7.72,7.74]},{ x:'04/03/2024',y:[7.74,7.75,7.70,7.72]},{ x:'04/08/2024',y:[7.72,7.72,7.67,7.71]},{ x:'04/09/2024',y:[7.71,7.77,7.69,7.77]},{ x:'04/10/2024',y:[7.77,7.80,7.70,7.74]},{ x:'04/11/2024',y:[7.79,7.89,7.76,7.80]},{ x:'04/12/2024',y:[7.84,7.84,7.73,7.74]},{ x:'04/15/2024',y:[7.74,7.74,7.69,7.71]},{ x:'04/16/2024',y:[7.71,7.71,7.20,7.34]},{ x:'04/17/2024',y:[7.34,7.41,7.34,7.41]},{ x:'04/18/2024',y:[7.40,7.45,7.31,7.37]},{ x:'04/19/2024',y:[7.37,7.38,7.20,7.26]},{ x:'04/22/2024',y:[7.29,7.38,7.26,7.29]},{ x:'04/23/2024',y:[7.29,7.33,7.29,7.33]},{ x:'04/24/2024',y:[7.33,7.35,7.30,7.34]},{ x:'04/25/2024',y:[7.34,7.38,7.31,7.38]},{ x:'04/26/2024',y:[7.38,7.78,7.35,7.78]},{ x:'04/29/2024',y:[7.85,7.85,7.66,7.72]},{ x:'04/30/2024',y:[7.70,7.75,7.63,7.63]},{ x:'05/02/2024',y:[7.63,7.76,7.61,7.68]},{ x:'05/03/2024',y:[7.70,7.74,7.63,7.63]},{ x:'05/06/2024',y:[7.65,7.68,7.53,7.58]},{ x:'05/07/2024',y:[7.60,7.60,7.43,7.43]},{ x:'05/08/2024',y:[7.43,7.45,7.39,7.41]},{ x:'05/09/2024',y:[7.41,7.49,7.41,7.45]},{ x:'05/10/2024',y:[7.45,7.54,7.42,7.53]},{ x:'05/13/2024',y:[7.55,7.71,7.52,7.66]},{ x:'05/14/2024',y:[7.69,7.69,7.50,7.60]},{ x:'05/15/2024',y:[7.60,7.71,7.59,7.66]},{ x:'05/16/2024',y:[7.70,8.42,7.67,8.42]},{ x:'05/17/2024',y:[8.78,9.10,8.60,8.75]},{ x:'05/20/2024',y:[8.75,8.80,8.50,8.52]},{ x:'05/21/2024',y:[8.51,8.75,8.31,8.62]},{ x:'05/22/2024',y:[8.66,8.67,8.55,8.60]},{ x:'05/23/2024',y:[8.70,8.70,8.35,8.36]},{ x:'05/24/2024',y:[8.35,8.43,8.23,8.42]},{ x:'06/11/2024',y:[9.20,9.20,8.92,8.93]},{ x:'06/12/2024',y:[8.94,9.04,8.85,8.91]},{ x:'06/13/2024',y:[8.95,9.04,8.89,8.91]},{ x:'06/14/2024',y:[8.92,9.20,8.92,9.10]},{ x:'06/17/2024',y:[9.19,9.20,9.07,9.16]},{ x:'06/18/2024',y:[9.22,9.23,9.07,9.16]},{ x:'06/19/2024',y:[9.20,9.20,9.01,9.03]},{ x:'06/20/2024',y:[9.02,9.24,9.02,9.22]},{ x:'06/21/2024',y:[9.22,9.58,9.19,9.45]},{ x:'06/24/2024',y:[9.68,9.79,9.35,9.39]},{ x:'06/25/2024',y:[9.38,9.38,9.16,9.27]},{ x:'06/26/2024',y:[9.49,9.69,9.33,9.44]},{ x:'06/27/2024',y:[9.70,10.35,9.57,10.35]},{ x:'06/28/2024',y:[10.85,11.35,10.60,11.35]},{ x:'07/01/2024',y:[12.35,12.45,11.95,12.45]},{ x:'07/02/2024',y:[13.60,13.65,13.00,13.65]},{ x:'07/03/2024',y:[14.35,15.00,14.35,15.00]},{ x:'07/04/2024',y:[16.25,16.50,16.15,16.50]},{ x:'07/05/2024',y:[18.15,18.15,18.15,18.15]},{ x:'07/12/2024',y:[16.00,16.45,15.80,16.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2349 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());