Class ChartSmartLabelsStrategy
Represents a specific strategy for arranging labels within the chart, so that they do not overlap with each other.
Inherited Members
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll
Syntax
public sealed class ChartSmartLabelsStrategy : ChartSmartLabelsStrategyBase
Constructors
ChartSmartLabelsStrategy()
Declaration
public ChartSmartLabelsStrategy()
Properties
ShouldMinimizeConnectorConflicts
Gets or sets a value indicating whether a more precise label positioning should be computed. When set to true, the strategy tries to minimize the connector conflicts - such as connectors intersecting point marks, labels and other connectors. When set to false the strategy is faster.
Declaration
public bool ShouldMinimizeConnectorConflicts { get; set; }
Property Value
System.Boolean
|
Methods
CalculateLabelsPositions(RadRect, ReadOnlyCollection<ChartSeriesLabelPositionInfo>)
Calculates the position of each individual label, so that it does not overlap with other labels. When overridden in derived class the FinalLayoutSlot property should be set for each item.
Declaration
protected override sealed void CalculateLabelsPositions(RadRect plotAreaClip, ReadOnlyCollection<ChartSeriesLabelPositionInfo> labelPositionInfos)
Parameters
RadRect
plotAreaClip
The plot area rectangle. |
System.Collections.ObjectModel.ReadOnlyCollection<ChartSeriesLabelPositionInfo>
labelPositionInfos
A list of objects that carry information about a series label. |