Skip to main content
All docs
V25.1
  • TdxChartExplodedValueMode Enum

    Enumerates available slice display modes for exploded Pie and Doughnut series Views.

    Declaration

    TdxChartExplodedValueMode = (
        None,
        All,
        Min,
        Max,
        Custom
    );

    Members

    Name Description Example (Doughnut) Example (Pie)
    None

    Default. A Pie or Doughnut series is not exploded in this mode; the ExplodedValueOptions.Distance property value is ignored.

    VCL Chart Control: All Doughnut Slices are Displayed Together

    VCL Chart Control: All Pie Slices are Displayed Together

    All

    All slices of a Pie or Doughnut View are separated from each other. The View’s ExplodedValueOptions.Distance property specifies offset (as a percentage) of slices from the pie or doughnut center.

    VCL Chart Control: All Doughnut Slices are Displayed Separately

    VCL Chart Control: All Pie Slices are Displayed Separately

    Min

    Only the Pie or Doughnut slice that corresponds to the minimum series value is displayed separately from its series. The View’s ExplodedValueOptions property specifies offset of the smallest slice from the pie or doughnut center.

    VCL Chart Control: Only the Smallest Doughnut Slice is Displayed Separately

    VCL Chart Control: Only the Smallest Pie Slice is Displayed Separately

    Max

    Only the Pie or Doughnut slice that corresponds to the maximum series value is displayed separately from its series. The View’s ExplodedValueOptions.Distance property specifies offset (as a percentage) of the maximum slice from the pie or doughnut center.

    VCL Chart Control: Only the Largest Doughnut Slice is Displayed Separately

    VCL Chart Control: Only the Largest Pie Slice is Displayed Separately

    Custom

    Pie or Doughnut slices do not separate automatically from each other but the series View raises the OnCanExplodeValue event every time the Chart control determines how to draw a Pie or Doughnut series slice. In this mode, you can handle the OnCanExplodeValue event of the target series View to determine what slices should be displayed separately based on custom conditions.

    VCL Chart Control: All Doughnut Slices are Displayed Together

    VCL Chart Control: All Pie Slices are Displayed Together

    Remarks

    Different slice display modes allow you to separate all or certain pie or doughnut slices from their neighbors.

    Note

    TdxChartExplodedValueMode is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxChartExplodedValueMode.All (in Delphi) or TdxChartExplodedValueMode::All (in C++Builder) to refer to the All value in code.

    Direct TdxChartExplodedValueMode Type Reference

    The ExplodedValueOptions.Mode property of Pie and Doughnut Views references the TdxChartExplodedValueMode type.

    See Also