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:'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]},{ x:'06/28/2024',y:[32.58,32.98,32.58,32.85]},{ x:'07/01/2024',y:[32.84,32.94,32.70,32.70]},{ x:'07/02/2024',y:[32.56,32.60,32.32,32.43]},{ x:'07/03/2024',y:[32.80,32.80,32.60,32.70]},{ x:'07/04/2024',y:[33.16,33.46,33.16,33.45]},{ x:'07/05/2024',y:[33.50,33.61,33.49,33.52]},{ x:'07/12/2024',y:[33.84,34.05,33.72,33.78]},{ x:'07/15/2024',y:[33.93,34.05,33.77,33.96]},{ x:'07/16/2024',y:[33.98,34.32,33.98,34.04]},{ x:'07/17/2024',y:[34.00,34.00,33.55,33.61]},{ x:'07/18/2024',y:[32.89,33.07,32.68,33.00]},{ x:'07/19/2024',y:[32.75,32.75,32.30,32.30]},{ x:'07/22/2024',y:[32.14,32.20,31.26,31.57]},{ x:'07/23/2024',y:[31.84,32.23,31.84,32.23]},{ x:'07/26/2024',y:[31.03,31.15,30.85,31.12]},{ x:'07/29/2024',y:[31.45,31.52,31.14,31.14]},{ x:'07/30/2024',y:[30.92,31.26,30.73,31.26]},{ x:'07/31/2024',y:[31.04,31.24,30.92,31.24]},{ x:'08/01/2024',y:[31.96,32.03,31.78,32.03]},{ x:'08/02/2024',y:[31.33,31.33,30.68,30.68]},{ x:'08/05/2024',y:[29.41,29.41,28.32,28.32]},{ x:'08/06/2024',y:[28.97,29.77,28.26,29.41]},{ x:'08/07/2024',y:[29.79,30.58,29.72,30.58]},{ x:'08/08/2024',y:[30.24,30.28,29.97,30.01]},{ x:'08/09/2024',y:[30.55,31.27,30.29,30.79]},{ x:'08/12/2024',y:[31.07,31.29,31.02,31.06]},{ x:'08/13/2024',y:[31.23,31.28,31.13,31.28]},{ x:'08/14/2024',y:[31.65,31.73,31.55,31.55]} ] }], 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());