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:[13.11,13.28,13.03,13.14]},{ x:'03/19/2024',y:[13.15,13.33,13.11,13.29]},{ x:'03/20/2024',y:[13.23,13.39,13.11,13.34]},{ x:'03/21/2024',y:[13.38,13.48,13.30,13.32]},{ x:'03/22/2024',y:[13.32,13.38,12.94,13.12]},{ x:'03/25/2024',y:[13.14,13.27,13.04,13.21]},{ x:'03/26/2024',y:[13.13,13.30,13.11,13.24]},{ x:'03/27/2024',y:[13.28,13.34,13.21,13.22]},{ x:'03/28/2024',y:[13.16,13.40,12.97,13.29]},{ x:'03/29/2024',y:[13.24,13.37,13.18,13.18]},{ x:'04/01/2024',y:[13.28,13.76,13.28,13.63]},{ x:'04/02/2024',y:[13.65,13.74,13.49,13.55]},{ x:'04/03/2024',y:[13.56,13.58,13.36,13.49]},{ x:'04/08/2024',y:[13.51,13.51,13.20,13.30]},{ x:'04/09/2024',y:[13.30,13.36,13.11,13.11]},{ x:'04/10/2024',y:[13.18,13.22,13.02,13.07]},{ x:'04/11/2024',y:[12.99,13.08,12.86,13.07]},{ x:'04/12/2024',y:[13.02,13.15,12.93,12.94]},{ x:'04/15/2024',y:[12.75,13.47,12.70,13.47]},{ x:'04/16/2024',y:[13.40,13.56,13.25,13.55]},{ x:'04/17/2024',y:[13.48,13.49,13.26,13.44]},{ x:'04/18/2024',y:[13.56,13.95,13.51,13.74]},{ x:'04/19/2024',y:[13.67,13.74,13.42,13.51]},{ x:'04/22/2024',y:[13.58,13.81,13.55,13.60]},{ x:'04/23/2024',y:[13.66,13.68,13.42,13.56]},{ x:'04/24/2024',y:[13.63,13.78,13.48,13.54]},{ x:'04/25/2024',y:[13.59,13.80,13.52,13.72]},{ x:'04/26/2024',y:[13.76,14.10,13.73,14.10]},{ x:'04/29/2024',y:[14.17,14.60,14.03,14.44]},{ x:'04/30/2024',y:[14.38,14.54,14.31,14.33]},{ x:'05/02/2024',y:[14.26,14.54,14.17,14.54]},{ x:'05/03/2024',y:[14.68,14.74,14.56,14.60]},{ x:'05/06/2024',y:[14.68,14.84,14.52,14.52]},{ x:'05/07/2024',y:[14.65,14.70,14.52,14.70]},{ x:'05/08/2024',y:[14.70,14.71,14.50,14.54]},{ x:'05/09/2024',y:[14.52,14.67,14.51,14.57]},{ x:'05/10/2024',y:[14.71,14.78,14.49,14.66]},{ x:'05/13/2024',y:[14.52,14.56,14.30,14.55]},{ x:'05/14/2024',y:[14.54,14.56,14.33,14.33]},{ x:'05/15/2024',y:[14.35,14.47,14.21,14.26]},{ x:'05/16/2024',y:[14.30,14.48,14.13,14.42]},{ x:'05/17/2024',y:[14.42,14.59,14.37,14.40]},{ x:'05/20/2024',y:[14.90,15.05,14.81,14.88]},{ x:'05/21/2024',y:[14.89,14.89,14.73,14.84]},{ x:'05/22/2024',y:[14.80,14.91,14.73,14.85]},{ x:'05/23/2024',y:[14.77,14.79,14.51,14.51]},{ x:'05/24/2024',y:[14.44,14.58,14.29,14.29]},{ x:'06/11/2024',y:[13.91,13.91,13.45,13.47]},{ x:'06/12/2024',y:[13.51,13.61,13.45,13.49]},{ x:'06/13/2024',y:[13.52,13.60,13.42,13.43]},{ x:'06/14/2024',y:[13.39,13.48,13.22,13.46]},{ x:'06/17/2024',y:[13.54,13.59,13.41,13.49]},{ x:'06/18/2024',y:[13.58,13.64,13.48,13.53]},{ x:'06/19/2024',y:[13.59,13.67,13.48,13.55]},{ x:'06/20/2024',y:[13.58,13.68,13.48,13.48]},{ x:'06/21/2024',y:[13.44,13.52,13.11,13.20]},{ x:'06/24/2024',y:[13.19,13.50,13.04,13.42]},{ x:'06/25/2024',y:[13.41,13.46,13.32,13.40]},{ x:'06/26/2024',y:[13.28,13.35,13.22,13.22]},{ x:'06/27/2024',y:[13.32,13.36,13.11,13.23]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00637l 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());