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/22/2024',y:[28.94,28.95,28.94,28.95]},{ x:'03/25/2024',y:[29.05,29.06,28.91,28.93]},{ x:'03/26/2024',y:[28.91,28.93,28.89,28.93]},{ x:'03/27/2024',y:[29.04,29.12,29.04,29.12]},{ x:'03/28/2024',y:[29.19,29.20,29.19,29.19]},{ x:'03/29/2024',y:[29.25,29.25,29.23,29.23]},{ x:'04/01/2024',y:[28.98,29.14,28.98,29.14]},{ x:'04/02/2024',y:[29.02,29.05,29.02,29.05]},{ x:'04/03/2024',y:[28.85,28.85,28.72,28.72]},{ x:'04/08/2024',y:[28.77,28.86,28.58,28.59]},{ x:'04/09/2024',y:[28.86,29.00,28.85,28.90]},{ x:'04/10/2024',y:[28.94,28.96,28.88,28.95]},{ x:'04/11/2024',y:[28.86,28.86,28.83,28.83]},{ x:'04/12/2024',y:[28.74,28.76,28.74,28.76]},{ x:'04/15/2024',y:[28.58,28.60,28.58,28.58]},{ x:'04/16/2024',y:[28.30,28.30,28.17,28.23]},{ x:'04/17/2024',y:[28.39,28.39,28.25,28.25]},{ x:'04/18/2024',y:[28.25,28.28,28.25,28.28]},{ x:'04/19/2024',y:[27.88,28.02,27.64,27.98]},{ x:'04/22/2024',y:[28.32,28.43,28.32,28.43]},{ x:'04/23/2024',y:[28.85,28.85,28.84,28.85]},{ x:'04/24/2024',y:[29.03,29.05,29.01,29.05]},{ x:'04/25/2024',y:[28.88,28.88,28.84,28.84]},{ x:'04/26/2024',y:[29.00,29.04,29.00,29.03]},{ x:'04/29/2024',y:[29.10,29.29,29.10,29.29]},{ x:'04/30/2024',y:[29.10,29.16,29.10,29.16]},{ x:'05/02/2024',y:[28.94,28.94,28.90,28.94]},{ x:'05/03/2024',y:[28.94,28.98,28.94,28.97]},{ x:'05/06/2024',y:[28.97,29.03,28.96,29.00]},{ x:'05/07/2024',y:[29.19,29.23,29.19,29.23]},{ x:'05/08/2024',y:[29.47,29.49,29.32,29.32]},{ x:'05/09/2024',y:[29.42,29.64,29.42,29.53]},{ x:'05/10/2024',y:[29.73,29.73,29.68,29.73]},{ x:'05/13/2024',y:[29.99,29.99,29.98,29.99]},{ x:'05/14/2024',y:[29.95,29.96,29.95,29.96]},{ x:'05/15/2024',y:[30.04,30.13,30.04,30.13]},{ x:'05/16/2024',y:[30.20,30.20,30.16,30.20]},{ x:'05/17/2024',y:[30.05,30.09,30.05,30.06]},{ x:'05/20/2024',y:[30.26,30.32,30.26,30.30]},{ x:'05/21/2024',y:[30.19,30.19,30.16,30.18]},{ x:'05/22/2024',y:[30.20,30.27,30.20,30.27]},{ x:'05/23/2024',y:[30.21,30.27,30.21,30.26]},{ x:'05/24/2024',y:[29.89,29.91,29.85,29.88]},{ x:'06/11/2024',y:[30.28,30.31,30.28,30.30]},{ x:'06/12/2024',y:[29.99,29.99,29.71,29.71]},{ x:'06/13/2024',y:[30.06,30.06,30.00,30.02]},{ x:'06/14/2024',y:[29.87,29.90,29.86,29.88]},{ x:'06/17/2024',y:[29.53,29.58,29.47,29.57]},{ x:'06/18/2024',y:[29.56,29.60,29.56,29.58]},{ x:'06/19/2024',y:[29.60,29.73,29.57,29.73]},{ x:'06/20/2024',y:[29.60,29.60,29.59,29.60]},{ x:'06/21/2024',y:[29.68,29.72,29.68,29.72]},{ x:'06/24/2024',y:[29.62,29.62,29.60,29.60]},{ x:'06/25/2024',y:[29.80,29.90,29.80,29.90]},{ x:'06/26/2024',y:[30.11,30.14,30.10,30.10]},{ x:'06/27/2024',y:[29.79,29.85,29.78,29.85]},{ x:'06/28/2024',y:[29.79,29.79,29.73,29.75]},{ x:'07/01/2024',y:[29.69,29.85,29.69,29.85]},{ x:'07/02/2024',y:[29.84,29.89,29.84,29.86]},{ x:'07/03/2024',y:[29.86,29.86,29.84,29.84]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00709 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());