Skip to main content

BootstrapPieChart.ResolveLabelOverlapping Property

Specifies options for displaying the overlapping labels.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[DefaultValue(PieChartResolveLabelOverlapping.None)]
public PieChartResolveLabelOverlapping ResolveLabelOverlapping { get; set; }

Property Value

Type Default Description
PieChartResolveLabelOverlapping None

A PieChartResolveLabelOverlapping enumeration value defining the labels display behavior when labels overlap each other.

Available values:

Name Description
None

Default. The label location is specified by default.

Hide

The PieChart automatically determines and hides overlapping labels in the order of their addition to the data source.

Shift

The PieChart control tries to shift chart labels to show them without overlapping. If there is not enough space for all labels, the control hides labels with the smallest value.

Remarks

When the chart contains a few narrow pie sectors, their labels can overlap each other. The BootstrapPieChart.ResolveLabelOverlapping property is assigned to the PieChartResolveLabelOverlapping.None value by default. To resolve label overlapping, specify one of the following values to the ResolveLabelOverlapping property:

  • Hide - automatically determines and hides overlapping labels in order of their addition to the data source.
  • Shift - tries to shift chart labels to show them without overlapping. If there is not enough space for all labels, hides labels with the smallest value.

Note

The “shift” mode in the ResolveLabelOverlapping property is not available if the BootstrapChartSeriesLabelSettings.Position option is set to “inside”.

See Also