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/18/2024',y:[14.91,14.96,14.82,14.89]},{ x:'03/19/2024',y:[14.86,14.97,14.86,14.94]},{ x:'03/20/2024',y:[14.99,15.04,14.92,14.94]},{ x:'03/21/2024',y:[14.98,15.14,14.98,15.08]},{ x:'03/22/2024',y:[15.07,15.13,14.96,14.97]},{ x:'03/25/2024',y:[14.96,15.03,14.95,15.01]},{ x:'03/26/2024',y:[15.00,15.13,14.94,15.00]},{ x:'03/27/2024',y:[15.00,15.15,15.00,15.13]},{ x:'03/28/2024',y:[15.14,15.15,15.05,15.08]},{ x:'03/29/2024',y:[15.12,15.14,15.04,15.12]},{ x:'04/01/2024',y:[15.11,15.13,15.04,15.05]},{ x:'04/02/2024',y:[15.03,15.03,14.97,14.98]},{ x:'04/03/2024',y:[15.01,15.01,14.88,14.90]},{ x:'04/08/2024',y:[14.89,15.00,14.87,15.00]},{ x:'04/09/2024',y:[15.00,15.16,15.00,15.16]},{ x:'04/10/2024',y:[15.16,15.20,15.14,15.15]},{ x:'04/11/2024',y:[15.11,15.17,15.09,15.15]},{ x:'04/12/2024',y:[15.08,15.18,15.06,15.16]},{ x:'04/15/2024',y:[15.15,15.21,15.08,15.18]},{ x:'04/16/2024',y:[15.07,15.07,14.78,14.83]},{ x:'04/17/2024',y:[14.84,14.94,14.82,14.92]},{ x:'04/18/2024',y:[14.93,15.03,14.90,15.01]},{ x:'04/19/2024',y:[14.96,15.00,14.76,14.86]},{ x:'04/22/2024',y:[14.93,15.02,14.88,14.89]},{ x:'04/23/2024',y:[14.90,15.01,14.90,14.93]},{ x:'04/24/2024',y:[15.01,15.05,14.97,14.97]},{ x:'04/25/2024',y:[14.86,14.91,14.84,14.87]},{ x:'04/26/2024',y:[14.88,15.07,14.88,15.01]},{ x:'04/29/2024',y:[15.16,15.36,15.15,15.33]},{ x:'04/30/2024',y:[15.33,15.33,15.23,15.27]},{ x:'05/02/2024',y:[15.27,15.36,15.20,15.22]},{ x:'05/03/2024',y:[15.29,15.33,15.19,15.23]},{ x:'05/06/2024',y:[15.29,15.47,15.24,15.39]},{ x:'05/07/2024',y:[15.41,15.45,15.35,15.37]},{ x:'05/08/2024',y:[15.37,15.40,15.30,15.36]},{ x:'05/09/2024',y:[15.38,15.50,15.38,15.42]},{ x:'05/10/2024',y:[15.50,15.93,15.50,15.88]},{ x:'05/13/2024',y:[16.05,16.14,15.98,16.08]},{ x:'05/14/2024',y:[16.08,16.35,16.07,16.10]},{ x:'05/15/2024',y:[16.10,16.28,16.03,16.13]},{ x:'05/16/2024',y:[16.20,16.37,16.20,16.37]},{ x:'05/17/2024',y:[16.37,16.38,16.27,16.29]},{ x:'05/20/2024',y:[16.37,16.46,16.31,16.41]},{ x:'05/21/2024',y:[16.40,16.40,16.20,16.20]},{ x:'05/22/2024',y:[16.20,16.30,16.18,16.28]},{ x:'05/23/2024',y:[16.16,16.25,16.16,16.22]},{ x:'05/24/2024',y:[16.19,16.35,16.19,16.30]},{ x:'06/11/2024',y:[16.89,17.00,16.49,16.51]},{ x:'06/12/2024',y:[16.51,16.52,16.29,16.34]},{ x:'06/13/2024',y:[16.53,16.58,16.41,16.44]},{ x:'06/14/2024',y:[16.45,16.70,16.45,16.70]},{ x:'06/17/2024',y:[16.70,16.73,16.59,16.68]},{ x:'06/18/2024',y:[16.73,16.77,16.67,16.74]},{ x:'06/19/2024',y:[16.79,16.98,16.78,16.87]},{ x:'06/20/2024',y:[16.87,16.89,16.82,16.85]},{ x:'06/21/2024',y:[16.87,16.93,16.85,16.89]},{ x:'06/24/2024',y:[16.89,16.91,16.79,16.86]},{ x:'06/25/2024',y:[16.60,16.63,16.45,16.55]},{ x:'06/26/2024',y:[16.51,16.53,16.39,16.43]},{ x:'06/27/2024',y:[16.35,16.42,16.26,16.41]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00907 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());