New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public sealed class ChartSmartLabelsStrategy : ChartSmartLabelsStrategyBase

Inheritance: objectChartSmartLabelsStrategyBaseChartSmartLabelsStrategy

Constructors

C#
public ChartSmartLabelsStrategy()

Properties

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.

C#
public bool ShouldMinimizeConnectorConflicts { get; set; }

Methods

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.

C#
protected override sealed void CalculateLabelsPositions(RadRect plotAreaClip, ReadOnlyCollection<ChartSeriesLabelPositionInfo> labelPositionInfos)
Parameters:plotAreaClipRadRect

The plot area rectangle.

labelPositionInfosReadOnlyCollection<ChartSeriesLabelPositionInfo>

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

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