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:'04/26/2024',y:[3.95,3.96,3.91,3.94]},{ x:'04/29/2024',y:[3.91,3.91,3.86,3.87]},{ x:'04/30/2024',y:[3.88,3.88,3.86,3.88]},{ x:'05/02/2024',y:[3.90,3.92,3.89,3.91]},{ x:'05/03/2024',y:[3.87,3.91,3.86,3.90]},{ x:'05/06/2024',y:[3.85,3.86,3.83,3.85]},{ x:'05/07/2024',y:[3.83,3.87,3.83,3.85]},{ x:'05/08/2024',y:[3.85,3.86,3.83,3.83]},{ x:'05/09/2024',y:[3.83,3.85,3.82,3.85]},{ x:'05/10/2024',y:[3.83,3.85,3.81,3.82]},{ x:'05/13/2024',y:[3.79,3.81,3.78,3.80]},{ x:'05/14/2024',y:[3.81,3.81,3.77,3.78]},{ x:'05/15/2024',y:[3.76,3.76,3.70,3.73]},{ x:'05/16/2024',y:[3.69,3.72,3.67,3.71]},{ x:'05/17/2024',y:[3.71,3.73,3.70,3.71]},{ x:'05/20/2024',y:[3.70,3.75,3.70,3.72]},{ x:'05/21/2024',y:[3.72,3.75,3.71,3.72]},{ x:'05/22/2024',y:[3.71,3.71,3.66,3.66]},{ x:'05/23/2024',y:[3.66,3.69,3.65,3.67]},{ x:'05/24/2024',y:[3.70,3.70,3.66,3.66]},{ x:'06/11/2024',y:[3.61,3.63,3.59,3.62]},{ x:'06/12/2024',y:[3.62,3.62,3.58,3.58]},{ x:'06/13/2024',y:[3.55,3.56,3.51,3.52]},{ x:'06/14/2024',y:[3.53,3.54,3.51,3.51]},{ x:'06/17/2024',y:[3.52,3.52,3.49,3.51]},{ x:'06/18/2024',y:[3.47,3.48,3.45,3.45]},{ x:'06/19/2024',y:[3.43,3.43,3.37,3.38]},{ x:'06/20/2024',y:[3.39,3.39,3.35,3.35]},{ x:'06/21/2024',y:[3.39,3.39,3.36,3.37]},{ x:'06/24/2024',y:[3.40,3.45,3.40,3.44]},{ x:'06/25/2024',y:[3.46,3.49,3.43,3.44]},{ x:'06/26/2024',y:[3.42,3.44,3.40,3.42]},{ x:'06/27/2024',y:[3.46,3.46,3.42,3.42]},{ x:'06/28/2024',y:[3.42,3.43,3.38,3.40]},{ x:'07/01/2024',y:[3.40,3.41,3.37,3.40]},{ x:'07/02/2024',y:[3.41,3.45,3.40,3.42]},{ x:'07/03/2024',y:[3.39,3.41,3.37,3.38]},{ x:'07/04/2024',y:[3.34,3.34,3.30,3.31]},{ x:'07/05/2024',y:[3.31,3.32,3.30,3.31]},{ x:'07/12/2024',y:[3.25,3.28,3.24,3.27]},{ x:'07/15/2024',y:[3.25,3.28,3.24,3.27]},{ x:'07/16/2024',y:[3.27,3.27,3.22,3.25]},{ x:'07/17/2024',y:[3.26,3.29,3.24,3.28]},{ x:'07/18/2024',y:[3.33,3.36,3.32,3.33]},{ x:'07/19/2024',y:[3.36,3.41,3.35,3.40]},{ x:'07/22/2024',y:[3.42,3.51,3.41,3.48]},{ x:'07/23/2024',y:[3.44,3.44,3.40,3.41]},{ x:'07/26/2024',y:[3.51,3.54,3.50,3.51]},{ x:'07/29/2024',y:[3.46,3.51,3.45,3.50]},{ x:'07/30/2024',y:[3.53,3.56,3.48,3.49]},{ x:'07/31/2024',y:[3.52,3.53,3.47,3.49]},{ x:'08/01/2024',y:[3.42,3.46,3.41,3.43]},{ x:'08/02/2024',y:[3.53,3.59,3.51,3.58]},{ x:'08/05/2024',y:[3.77,3.93,3.77,3.93]},{ x:'08/06/2024',y:[3.74,3.92,3.69,3.76]},{ x:'08/07/2024',y:[3.72,3.73,3.59,3.61]},{ x:'08/08/2024',y:[3.68,3.72,3.64,3.68]},{ x:'08/09/2024',y:[3.58,3.61,3.55,3.59]},{ x:'08/12/2024',y:[3.56,3.56,3.50,3.54]},{ x:'08/13/2024',y:[3.51,3.54,3.50,3.52]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00632r 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());