Skip to main content
All docs
V26.1
  • PieDashboardItem.SpacingMode Property

    Specifies whether spacing between pie or donut segments is enabled.

    Namespace: DevExpress.DashboardCommon

    Assembly: DevExpress.Dashboard.v26.1.Core.dll

    Declaration

    [DefaultValue(DashboardPieSpacingMode.Disable)]
    public DashboardPieSpacingMode SpacingMode { get; set; }

    Property Value

    Type Default Description
    DashboardPieSpacingMode Disable

    A value that specifies whether segment spacing is applied.

    Remarks

    Use this property to enable segment spacing.

    When this property is set to Enable, SegmentSpacing defines the spacing size.

    The following code snippet sets segment spacing to 5:

    using DevExpress.DashboardCommon;
    // ...
    Dashboard dashboard = new Dashboard();
    dashboard.DataSources.Add(extractDataSource);
      PieDashboardItem pie = new PieDashboardItem()
      {
          ComponentName = "pie1",
          Name = "Products",
          SpacingMode = DashboardPieSpacingMode.Enable,
          SegmentSpacing = 5
      };
      pie.DataSource = extractDataSource;
      pie.Arguments.Add(new Dimension("OrderDate"));
      pie.Values.Add(new Measure("SalesAmount"));
      dashboard.Items.Add(pie);
    

    The following image displays the result:

    Pie item segment spacing

    See Also