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:[29.65,29.68,29.55,29.55]},{ x:'03/20/2024',y:[29.56,29.60,29.52,29.54]},{ x:'03/21/2024',y:[30.63,30.96,30.61,30.76]},{ x:'03/22/2024',y:[30.28,30.28,29.95,29.99]},{ x:'03/25/2024',y:[29.76,30.03,29.72,29.83]},{ x:'03/26/2024',y:[29.91,29.94,29.77,29.91]},{ x:'03/27/2024',y:[30.05,30.10,29.93,30.03]},{ x:'03/28/2024',y:[30.31,30.54,30.28,30.51]},{ x:'03/29/2024',y:[31.28,31.60,31.28,31.59]},{ x:'04/01/2024',y:[32.13,32.44,32.13,32.28]},{ x:'04/02/2024',y:[32.00,32.21,31.93,32.12]},{ x:'04/03/2024',y:[32.89,33.07,32.80,32.96]},{ x:'04/08/2024',y:[33.54,34.86,33.50,34.54]},{ x:'04/09/2024',y:[34.56,34.75,34.46,34.67]},{ x:'04/10/2024',y:[34.80,35.08,34.68,35.05]},{ x:'04/11/2024',y:[34.43,34.72,34.38,34.64]},{ x:'04/12/2024',y:[35.82,36.19,35.77,35.90]},{ x:'04/15/2024',y:[34.97,35.27,34.83,35.02]},{ x:'04/16/2024',y:[35.94,36.09,35.76,36.06]},{ x:'04/17/2024',y:[35.91,35.97,35.76,35.76]},{ x:'04/18/2024',y:[35.43,35.60,35.23,35.56]},{ x:'04/19/2024',y:[35.72,36.84,35.72,35.86]},{ x:'04/22/2024',y:[35.77,35.87,35.23,35.40]},{ x:'04/23/2024',y:[34.34,34.36,33.25,33.67]},{ x:'04/24/2024',y:[33.83,34.13,33.78,34.05]},{ x:'04/25/2024',y:[33.85,33.88,33.42,33.73]},{ x:'04/26/2024',y:[34.10,34.35,34.03,34.32]},{ x:'04/29/2024',y:[34.06,34.25,33.86,34.19]},{ x:'04/30/2024',y:[34.19,34.23,33.96,33.96]},{ x:'05/02/2024',y:[33.90,33.96,33.58,33.58]},{ x:'05/03/2024',y:[33.25,33.35,33.11,33.33]},{ x:'05/06/2024',y:[33.16,33.52,33.16,33.46]},{ x:'05/07/2024',y:[33.95,33.95,33.67,33.77]},{ x:'05/08/2024',y:[33.53,33.69,33.34,33.68]},{ x:'05/09/2024',y:[33.39,33.62,33.33,33.62]},{ x:'05/10/2024',y:[34.51,34.75,34.48,34.75]},{ x:'05/13/2024',y:[34.86,34.91,34.58,34.58]},{ x:'05/14/2024',y:[34.19,34.37,34.16,34.35]},{ x:'05/15/2024',y:[34.63,34.75,34.61,34.64]},{ x:'05/16/2024',y:[35.73,35.73,35.42,35.52]},{ x:'05/17/2024',y:[35.20,35.26,35.10,35.26]},{ x:'05/20/2024',y:[36.87,36.99,36.62,36.99]},{ x:'05/21/2024',y:[36.70,36.79,36.08,36.29]},{ x:'05/22/2024',y:[36.46,36.63,36.16,36.21]},{ x:'05/23/2024',y:[35.21,35.24,34.79,34.92]},{ x:'05/24/2024',y:[33.66,33.85,33.59,33.80]},{ x:'06/11/2024',y:[32.90,32.92,32.65,32.66]},{ x:'06/12/2024',y:[32.95,33.03,32.91,32.98]},{ x:'06/13/2024',y:[33.10,33.11,32.78,32.83]},{ x:'06/14/2024',y:[32.69,32.78,32.64,32.73]},{ x:'06/17/2024',y:[33.15,33.30,33.12,33.13]},{ x:'06/18/2024',y:[33.23,33.23,33.07,33.08]},{ x:'06/19/2024',y:[33.36,33.41,33.26,33.34]},{ x:'06/20/2024',y:[33.44,33.71,33.42,33.71]},{ x:'06/21/2024',y:[34.29,34.30,34.11,34.24]},{ x:'06/24/2024',y:[33.03,33.22,33.01,33.18]},{ x:'06/25/2024',y:[33.26,33.34,33.11,33.23]},{ x:'06/26/2024',y:[32.98,33.03,32.72,32.90]},{ x:'06/27/2024',y:[32.42,32.46,32.37,32.41]},{ x:'06/28/2024',y:[33.03,33.08,32.96,33.07]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00708l 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());