skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PieTwoLabelColumnsStrategy

Represents a smart labels strategy for a pie chart that places labels in two horizontal columns of the chart without them overlapping.

Inheritance
System.Object
SmartLabelsStrategyBase
PieTwoLabelColumnsStrategy
Inherited Members
SmartLabelsStrategyBase.DistanceToLabel
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.ChartView.dll

Syntax

public class PieTwoLabelColumnsStrategy : SmartLabelsStrategyBase

Constructors

PieTwoLabelColumnsStrategy()

Declaration
public PieTwoLabelColumnsStrategy()

Properties

DistanceBetweenLabels

Gets or sets the distance between labels.

Declaration
public int DistanceBetweenLabels { get; set; }
Property Value
System.Int32

The distance between labels.

Methods

CalculateLocations(ChartSeriesCollection, Rectangle)

Within this method labels' positions are calculated and are set to the SmartLocation property of each label.

Declaration
public override void CalculateLocations(ChartSeriesCollection series, Rectangle plotArea)
Parameters
ChartSeriesCollection series

All the series in the current chart view.

System.Drawing.Rectangle plotArea

The plot area.

Overrides
SmartLabelsStrategyBase.CalculateLocations(ChartSeriesCollection, Rectangle)

CalculateOverlaps(List<LabelElement>, Rectangle)

Calculates the overlaps of labels.

Declaration
protected virtual PieTwoLabelColumnsStrategy.ClusterizationInfo CalculateOverlaps(List<LabelElement> labels, Rectangle plotArea)
Parameters
System.Collections.Generic.List<LabelElement> labels

The labels.

System.Drawing.Rectangle plotArea

The plot area.

Returns
PieTwoLabelColumnsStrategy.ClusterizationInfo

An object holding information on the labels collisions.

GetSmartLayoutSlot(PieSeries, LabelElement, Double)

Gets the smart layout slot for a given label.

Declaration
protected virtual Rectangle GetSmartLayoutSlot(PieSeries series, LabelElement label, double angle)
Parameters
PieSeries series

The series.

LabelElement label

The label.

System.Double angle

The angle.

Returns
System.Drawing.Rectangle

OptimizeBottomUp(List<LabelElement>, Rectangle, Boolean)

Begind the optimization from the bottom and proceeds up.

Declaration
protected virtual void OptimizeBottomUp(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
System.Collections.Generic.List<LabelElement> labels

The labels.

System.Drawing.Rectangle plotArea

The plot area.

System.Boolean isLeftColumn

Indicates whether the left column is processed true or the right one false.

OptimizeCenterUpAndDown(List<LabelElement>, Rectangle, Boolean)

Begind the optimization from the center and proceeds up and down.

Declaration
protected virtual void OptimizeCenterUpAndDown(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
System.Collections.Generic.List<LabelElement> labels

The labels.

System.Drawing.Rectangle plotArea

The plot area.

System.Boolean isLeftColumn

Indicates whether the left column is processed true or the right one false.

OptimizeColumnPositions(List<LabelElement>, Rectangle, Boolean)

Optimizes the labels positions in the two columns.

Declaration
protected virtual void OptimizeColumnPositions(List<LabelElement> column, Rectangle plotArea, bool isLeftColumn)
Parameters
System.Collections.Generic.List<LabelElement> column

The column.

System.Drawing.Rectangle plotArea

The plot area.

System.Boolean isLeftColumn

Indicates whether the left column is processed true or the right one false.

OptimizeTopDown(List<LabelElement>, Rectangle, Boolean)

Begind the optimization from the top and proceeds down.

Declaration
protected virtual void OptimizeTopDown(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
System.Collections.Generic.List<LabelElement> labels

The labels.

System.Drawing.Rectangle plotArea

The plot area.

System.Boolean isLeftColumn

Indicates whether the left column is processed true or the right one false.

ToRectangleF(RadRect)

Converts a RadRect to a RectangleF.

Declaration
public Rectangle ToRectangleF(RadRect rect)
Parameters
RadRect rect

The rect.

Returns
System.Drawing.Rectangle

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.