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/21/2024',y:[16.60,16.69,16.55,16.69]},{ x:'03/22/2024',y:[16.39,16.39,16.23,16.25]},{ x:'03/25/2024',y:[16.45,16.50,16.42,16.47]},{ x:'03/26/2024',y:[16.78,16.87,16.75,16.82]},{ x:'03/27/2024',y:[16.39,16.43,16.31,16.36]},{ x:'03/28/2024',y:[16.70,16.75,16.64,16.68]},{ x:'03/29/2024',y:[17.15,17.16,17.08,17.12]},{ x:'04/01/2024',y:[17.10,17.28,17.07,17.27]},{ x:'04/02/2024',y:[17.50,17.54,17.45,17.51]},{ x:'04/03/2024',y:[17.93,18.05,17.93,17.95]},{ x:'04/08/2024',y:[17.94,18.38,17.90,18.34]},{ x:'04/09/2024',y:[18.76,18.76,18.61,18.61]},{ x:'04/10/2024',y:[18.17,18.20,18.12,18.16]},{ x:'04/11/2024',y:[18.62,18.79,18.62,18.73]},{ x:'04/12/2024',y:[18.52,18.76,18.52,18.67]},{ x:'04/15/2024',y:[18.57,18.77,18.50,18.62]},{ x:'04/16/2024',y:[18.88,19.02,18.83,18.95]},{ x:'04/17/2024',y:[18.66,18.70,18.49,18.51]},{ x:'04/18/2024',y:[17.59,17.69,17.55,17.67]},{ x:'04/19/2024',y:[17.76,18.97,17.76,18.31]},{ x:'04/22/2024',y:[17.41,17.45,17.32,17.34]},{ x:'04/23/2024',y:[17.64,17.67,17.47,17.66]},{ x:'04/24/2024',y:[17.99,17.99,17.87,17.97]},{ 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]} ] }], 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());