SoFunction
Updated on 2025-03-07

DevExpress Setting the Lable position instance of the pie chart

/// <summary>
/// Set the Lable position of the pie chart
/// </summary>
/// <param name="series">Series</param>
/// <param name="lablePosition">PieSeriesLabelPosition enumeration</param>
public static void SetLablePosition(this Series series, PieSeriesLabelPosition lablePosition)
{
    if ( is PieSeriesLabel)
    {
 PieSeriesLabel _label = as PieSeriesLabel;
 _label.Position = lablePosition;
    }
    //if ( is Pie3DSeriesLabel)
    //{
    //    Pie3DSeriesLabel _label = as Pie3DSeriesLabel;
    //    _label.Position = lablePosition;
    //}

}