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/19/2024',y:[18.18,18.20,18.17,18.18]},{ x:'03/20/2024',y:[18.27,18.31,18.27,18.30]},{ x:'03/21/2024',y:[18.51,18.54,18.51,18.53]},{ x:'03/22/2024',y:[18.92,18.96,18.92,18.92]},{ x:'03/25/2024',y:[18.74,18.74,18.62,18.64]},{ x:'03/26/2024',y:[18.61,18.67,18.56,18.65]},{ x:'03/27/2024',y:[18.71,18.77,18.70,18.74]},{ x:'03/28/2024',y:[18.91,18.94,18.91,18.92]},{ x:'03/29/2024',y:[18.92,18.97,18.92,18.96]},{ x:'04/01/2024',y:[19.00,19.07,19.00,19.07]},{ x:'04/02/2024',y:[18.91,19.13,18.91,18.94]},{ x:'04/03/2024',y:[18.81,18.84,18.79,18.79]},{ x:'04/08/2024',y:[18.82,18.86,18.81,18.81]},{ x:'04/09/2024',y:[18.96,18.98,18.94,18.94]},{ x:'04/10/2024',y:[18.96,18.97,18.93,18.97]},{ x:'04/11/2024',y:[18.69,18.73,18.67,18.72]},{ x:'04/12/2024',y:[18.65,18.65,18.60,18.61]},{ x:'04/15/2024',y:[18.36,18.37,18.31,18.35]},{ x:'04/16/2024',y:[18.38,18.38,18.32,18.34]},{ x:'04/17/2024',y:[18.16,18.19,18.15,18.15]},{ x:'04/18/2024',y:[18.16,18.20,18.15,18.18]},{ x:'04/19/2024',y:[18.22,18.24,18.12,18.15]},{ x:'04/22/2024',y:[18.41,18.55,18.41,18.53]},{ x:'04/23/2024',y:[18.77,18.84,18.77,18.83]},{ x:'04/24/2024',y:[18.93,18.94,18.91,18.93]},{ x:'04/25/2024',y:[18.93,18.96,18.89,18.95]},{ x:'04/26/2024',y:[18.88,18.90,18.84,18.87]},{ x:'04/29/2024',y:[18.89,18.98,18.89,18.96]},{ x:'04/30/2024',y:[18.87,18.87,18.84,18.84]},{ x:'05/02/2024',y:[18.77,18.83,18.75,18.81]},{ x:'05/03/2024',y:[18.82,18.82,18.79,18.79]},{ x:'05/06/2024',y:[18.84,18.88,18.84,18.87]},{ x:'05/07/2024',y:[19.04,19.06,19.03,19.06]},{ x:'05/08/2024',y:[19.12,19.17,19.12,19.12]},{ x:'05/09/2024',y:[19.23,19.27,19.22,19.24]},{ x:'05/10/2024',y:[19.44,19.51,19.44,19.50]},{ x:'05/13/2024',y:[19.55,19.57,19.54,19.55]},{ x:'05/14/2024',y:[19.50,19.52,19.48,19.48]},{ x:'05/15/2024',y:[19.60,19.63,19.55,19.56]},{ x:'05/16/2024',y:[19.76,19.76,19.72,19.72]},{ x:'05/17/2024',y:[19.77,19.80,19.77,19.77]},{ x:'05/20/2024',y:[19.88,19.88,19.86,19.86]},{ x:'05/21/2024',y:[19.71,19.77,19.69,19.73]},{ x:'05/22/2024',y:[19.80,19.84,19.79,19.80]},{ x:'05/23/2024',y:[19.78,19.78,19.73,19.75]},{ x:'05/24/2024',y:[19.57,19.57,19.51,19.52]},{ x:'06/11/2024',y:[19.32,19.32,19.31,19.32]},{ x:'06/12/2024',y:[19.08,19.10,19.06,19.10]},{ x:'06/13/2024',y:[19.17,19.26,19.17,19.25]},{ x:'06/14/2024',y:[19.21,19.25,19.21,19.23]},{ x:'06/17/2024',y:[19.20,19.20,19.16,19.17]},{ x:'06/18/2024',y:[19.26,19.35,19.26,19.33]},{ x:'06/19/2024',y:[19.40,19.50,19.40,19.50]},{ x:'06/20/2024',y:[19.54,19.54,19.47,19.47]},{ x:'06/21/2024',y:[19.48,19.55,19.48,19.50]},{ x:'06/24/2024',y:[19.40,19.41,19.34,19.36]},{ x:'06/25/2024',y:[19.57,19.59,19.56,19.58]},{ x:'06/26/2024',y:[19.48,19.51,19.45,19.48]},{ x:'06/27/2024',y:[19.40,19.41,19.37,19.38]},{ x:'06/28/2024',y:[19.41,19.48,19.41,19.46]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00917 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());