Creates a new instance of SmartLabelsController which handles the smart labels placement in RadChartView.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class SmartLabelsController : ChartViewController, INotifyPropertyChanged
Inheritance: objectControllerChartViewControllerSmartLabelsController
Implements:
Inherited Members
Constructors
Initializes a new instance of the SmartLabelsController class.
public SmartLabelsController()
Properties
Gets or sets the strategy used for resolving label collisions.
public SmartLabelsStrategyBase Strategy { get; set; }
The strategy.
Methods
Calculates the labels positions using the current strategy.
public virtual void CalculateLabelsPositions(ChartSeriesCollection series, Rectangle plotArea)
All the series in the chart view.
plotAreaRectangleThe plot area.
This method is called when the controller is added to the controllers collection of an area.
protected override void ControllerAdded(ChartView view)
The view.
Overrides:
This method is called when the controller is removed from the controllers collection of an area.
protected override void ControllerRemoved()
Overrides:
Gets the default strategy for a given area type.
protected virtual SmartLabelsStrategyBase GetDefaultStrategy(ChartArea area)
The area.
Returns:The default strategy for the given area.
Registers a custom strategy with a list of compatible series. Custom strategies inheriting the FourPositionsLabelsStrategy, EightPositionsLabelsStrategy, PieTwoLabelColumnsStrategy, or the VerticalAdjusmentLabelsStrategy strategy may not be registered as they can use the compatible series for their base type.