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:[29.78,30.14,29.78,30.13]},{ x:'03/19/2024',y:[30.00,30.08,29.85,30.04]},{ x:'03/20/2024',y:[30.08,30.15,29.70,29.70]},{ x:'03/21/2024',y:[30.12,30.33,30.08,30.28]},{ x:'03/22/2024',y:[30.24,30.31,30.00,30.19]},{ x:'03/25/2024',y:[30.19,30.31,30.18,30.18]},{ x:'03/26/2024',y:[30.26,30.60,30.00,30.17]},{ x:'03/27/2024',y:[30.20,30.42,30.07,30.36]},{ x:'03/28/2024',y:[30.26,30.35,30.00,30.23]},{ x:'03/29/2024',y:[30.23,30.51,30.23,30.42]},{ x:'04/01/2024',y:[30.51,30.68,30.35,30.35]},{ x:'04/02/2024',y:[30.53,30.69,30.53,30.62]},{ x:'04/03/2024',y:[30.46,30.62,30.36,30.53]},{ x:'04/08/2024',y:[30.55,30.62,30.48,30.51]},{ x:'04/09/2024',y:[30.70,31.10,30.65,31.05]},{ x:'04/10/2024',y:[31.07,31.35,31.05,31.25]},{ x:'04/11/2024',y:[31.22,31.23,31.07,31.18]},{ x:'04/12/2024',y:[31.18,31.23,31.10,31.11]},{ x:'04/15/2024',y:[30.90,30.90,30.45,30.47]},{ x:'04/16/2024',y:[30.11,30.11,29.38,29.50]},{ x:'04/17/2024',y:[29.60,29.75,29.57,29.61]},{ x:'04/18/2024',y:[29.47,29.89,29.30,29.88]},{ x:'04/19/2024',y:[29.25,29.25,28.16,28.40]},{ x:'04/22/2024',y:[28.30,28.55,28.12,28.19]},{ x:'04/23/2024',y:[28.56,28.56,28.26,28.44]},{ x:'04/24/2024',y:[28.92,29.40,28.92,29.37]},{ x:'04/25/2024',y:[29.07,29.07,28.78,28.78]},{ x:'04/26/2024',y:[29.20,29.45,29.18,29.23]},{ x:'04/29/2024',y:[29.54,29.83,29.54,29.81]},{ x:'04/30/2024',y:[29.79,29.90,29.71,29.84]},{ x:'05/02/2024',y:[29.45,29.56,29.37,29.41]},{ x:'05/03/2024',y:[29.75,29.91,29.55,29.56]},{ x:'05/06/2024',y:[29.94,30.00,29.78,29.78]},{ x:'05/07/2024',y:[29.85,29.85,29.65,29.70]},{ x:'05/08/2024',y:[29.64,29.74,29.46,29.74]},{ x:'05/09/2024',y:[29.66,29.71,29.58,29.58]},{ x:'05/10/2024',y:[29.69,29.74,29.50,29.74]},{ x:'05/13/2024',y:[29.88,29.97,29.74,29.84]},{ x:'05/14/2024',y:[29.80,29.98,29.80,29.96]},{ x:'05/15/2024',y:[30.04,30.31,30.04,30.10]},{ x:'05/16/2024',y:[30.49,30.54,30.28,30.33]},{ x:'05/17/2024',y:[30.33,30.37,30.24,30.33]},{ x:'05/20/2024',y:[30.30,30.36,30.13,30.23]},{ x:'05/21/2024',y:[30.24,30.25,30.13,30.21]},{ x:'05/22/2024',y:[30.30,30.73,30.30,30.71]},{ x:'05/23/2024',y:[30.83,31.00,30.69,30.96]},{ x:'05/24/2024',y:[30.78,30.92,30.78,30.83]},{ x:'06/11/2024',y:[31.04,31.10,30.88,30.88]},{ x:'06/12/2024',y:[31.04,31.35,31.04,31.31]},{ x:'06/13/2024',y:[31.60,31.92,31.58,31.68]},{ x:'06/14/2024',y:[31.71,32.00,31.71,31.96]},{ x:'06/17/2024',y:[31.96,32.27,31.94,32.17]},{ x:'06/18/2024',y:[32.53,32.63,32.43,32.50]},{ x:'06/19/2024',y:[32.76,33.04,32.73,32.96]},{ x:'06/20/2024',y:[32.88,33.08,32.88,33.06]},{ x:'06/21/2024',y:[32.75,32.96,32.70,32.84]},{ x:'06/24/2024',y:[32.64,32.64,32.32,32.32]},{ x:'06/25/2024',y:[32.14,32.31,31.89,32.30]},{ x:'06/26/2024',y:[32.43,32.78,32.43,32.68]},{ x:'06/27/2024',y:[32.39,32.64,32.39,32.57]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00728 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());