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/25/2024',y:[17.76,17.88,17.72,17.88]},{ x:'04/26/2024',y:[18.23,18.25,18.16,18.24]},{ x:'04/29/2024',y:[17.99,18.03,17.95,18.03]},{ x:'04/30/2024',y:[17.77,17.86,17.77,17.79]},{ x:'05/02/2024',y:[16.48,16.62,16.42,16.58]},{ x:'05/03/2024',y:[16.55,16.56,16.43,16.51]},{ x:'05/06/2024',y:[16.20,16.25,16.16,16.24]},{ x:'05/07/2024',y:[16.38,16.39,16.24,16.32]},{ x:'05/08/2024',y:[16.14,16.15,16.01,16.01]},{ x:'05/09/2024',y:[16.42,16.49,16.38,16.48]},{ x:'05/10/2024',y:[16.59,16.68,16.59,16.67]},{ x:'05/13/2024',y:[15.96,16.00,15.87,15.95]},{ x:'05/14/2024',y:[16.31,16.34,16.23,16.28]},{ x:'05/15/2024',y:[15.97,16.09,15.95,16.05]},{ x:'05/16/2024',y:[16.12,16.12,16.01,16.07]},{ x:'05/17/2024',y:[16.13,16.29,16.13,16.26]},{ x:'05/20/2024',y:[16.42,16.57,16.39,16.50]},{ x:'05/21/2024',y:[16.32,16.43,16.22,16.24]},{ x:'05/22/2024',y:[15.98,16.03,15.90,15.92]},{ x:'05/23/2024',y:[15.55,15.59,15.48,15.54]},{ x:'05/24/2024',y:[15.50,15.57,15.48,15.50]},{ x:'06/11/2024',y:[15.62,15.66,15.51,15.60]},{ x:'06/12/2024',y:[15.81,15.92,15.79,15.92]},{ x:'06/13/2024',y:[15.89,15.91,15.79,15.87]},{ x:'06/14/2024',y:[15.80,15.97,15.79,15.93]},{ x:'06/17/2024',y:[15.90,15.92,15.83,15.85]},{ x:'06/18/2024',y:[16.55,16.57,16.46,16.48]},{ x:'06/19/2024',y:[16.94,16.96,16.92,16.95]},{ x:'06/20/2024',y:[16.86,16.89,16.81,16.84]},{ x:'06/21/2024',y:[17.00,17.03,16.97,17.01]},{ x:'06/24/2024',y:[16.72,16.86,16.71,16.86]},{ x:'06/25/2024',y:[17.24,17.26,17.16,17.23]},{ x:'06/26/2024',y:[16.88,17.08,16.83,17.07]},{ x:'06/27/2024',y:[16.90,16.93,16.85,16.91]},{ x:'06/28/2024',y:[17.39,17.47,17.36,17.46]},{ x:'07/01/2024',y:[17.22,17.38,17.22,17.36]},{ x:'07/02/2024',y:[17.92,17.98,17.90,17.95]},{ x:'07/03/2024',y:[17.81,17.96,17.80,17.94]},{ x:'07/04/2024',y:[18.02,18.03,17.92,17.94]},{ x:'07/05/2024',y:[18.21,18.21,17.99,18.02]},{ x:'07/12/2024',y:[17.41,17.44,17.31,17.35]},{ x:'07/15/2024',y:[17.00,17.26,16.96,17.24]},{ x:'07/16/2024',y:[17.10,17.11,17.01,17.02]},{ x:'07/17/2024',y:[16.65,16.75,16.59,16.68]},{ x:'07/18/2024',y:[17.20,17.34,17.20,17.29]},{ x:'07/19/2024',y:[17.01,17.12,16.98,17.03]},{ x:'07/22/2024',y:[16.49,16.52,16.37,16.49]},{ x:'07/23/2024',y:[16.19,16.33,16.18,16.25]},{ x:'07/26/2024',y:[16.22,16.33,16.18,16.29]},{ x:'07/29/2024',y:[15.89,15.97,15.79,15.97]},{ x:'07/30/2024',y:[15.25,15.26,15.15,15.19]},{ x:'07/31/2024',y:[15.08,15.44,15.08,15.44]},{ x:'08/01/2024',y:[16.13,16.21,16.05,16.19]},{ x:'08/02/2024',y:[15.52,15.75,15.50,15.65]},{ x:'08/05/2024',y:[14.65,14.70,14.28,14.28]},{ x:'08/06/2024',y:[14.64,14.64,14.45,14.56]},{ x:'08/07/2024',y:[14.25,14.42,14.07,14.42]},{ x:'08/08/2024',y:[14.98,14.99,14.82,14.87]},{ x:'08/09/2024',y:[15.02,15.15,14.99,15.08]},{ x:'08/12/2024',y:[15.23,15.36,15.18,15.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00715l 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());