Class
ChartSmartLabelsStrategy

Represents a specific strategy for arranging labels within the chart, so that they do not overlap with each other.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public sealed class ChartSmartLabelsStrategy : ChartSmartLabelsStrategyBase

Inheritance: objectChartSmartLabelsStrategyBaseChartSmartLabelsStrategy

Constructors

ChartSmartLabelsStrategy()

Declaration

cs-api-definition
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

cs-api-definition
public bool ShouldMinimizeConnectorConflicts { get; set; }

Property Value

bool

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

cs-api-definition
protected override sealed void CalculateLabelsPositions(RadRect plotAreaClip, ReadOnlyCollection<ChartSeriesLabelPositionInfo> labelPositionInfos)

Parameters

plotAreaClip

RadRect

The plot area rectangle.

labelPositionInfos

ReadOnlyCollection<ChartSeriesLabelPositionInfo>

A list of objects that carry information about a series label.

Overrides ChartSmartLabelsStrategyBase.CalculateLabelsPositions(RadRect, ReadOnlyCollection<ChartSeriesLabelPositionInfo>)