Skip to main content
All docs
V23.2

DefaultGroupIntervalAttribute Class

Specifies the default group interval for data items.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.2.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

[AttributeUsage(AttributeTargets.Property)]
public class DefaultGroupIntervalAttribute :
    Attribute

Remarks

Apply the DefaultGroupIntervalAttribute to a data section in metadata. The attribute allows you to set the default group interval for data items in the section.

To specify the date-time group interval, pass one of the DateTimeGroupInterval enumeration values as an argument to the DefaultGroupIntervalAttribute constructor.

The following code snippet sets the default Month-Year group interval for data items in the Arguments section:

using System.ComponentModel;
using DevExpress.DashboardCommon;

namespace CustomItemsSample {
  public class CustomFunnelMetadata : CustomItemMetadata {
    //...
    [DefaultGroupInterval(DateTimeGroupInterval.MonthYear)]
    public DimensionCollection Arguments { get; } = new DimensionCollection();
  }
}

When a user drops a data item in the Arguments section of the UI, the data item’s initial group interval is automatically set to Month-Year.

default date time interval

Inheritance

Object
Attribute
DefaultGroupIntervalAttribute
See Also