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

    Specifies the spacing size between pie or donut segments.

    Namespace: DevExpress.DashboardCommon

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

    Declaration

    [Browsable(false)]
    [DefaultValue(2)]
    public int SegmentSpacing { get; set; }

    Property Value

    Type Default Description
    Int32 2

    An integer value that defines the segment spacing size.

    Remarks

    When the SpacingMode 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