• Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Axis

Represents an axis within a RadCartesianChart instance.

Inheritance
System.Object
RadControlBase
PresenterBase
ChartElementPresenter
Axis
LineAxis
RadialAxis
Inherited Members
ChartElementPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs)
ChartElementPresenter.ZIndex
ChartElementPresenter.Chart
PresenterBase.InfinitySize
PresenterBase.InfinityPoint
PresenterBase.IChartElementPresenter.MeasureContent(ChartNode, Object)
PresenterBase.IChartElementPresenter.MeasureVisual(ChartNode, RadSize)
PresenterBase.RefreshNode(ChartNode)
PresenterBase.InvalidatePalette()
PresenterBase.RefreshNodeCore(ChartNode)
PresenterBase.CreateContentPresenter(Object, DataTemplate)
PresenterBase.IChartElementPresenter.IsVisible
PresenterBase.RenderSurface
RadControlBase.OnUnloaded(Object, RoutedEventArgs)
RadControlBase.OnLoaded(Object, RoutedEventArgs)
RadControlBase.IsLoaded
RadControlBase.IsTemplateApplied
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll

Syntax

public abstract class Axis : ChartElementPresenter, IChartElementPresenterWithMargin, IChartElementPresenter

Constructors

Axis()

Initializes a new instance of the Axis class.

Declaration
protected Axis()

Fields

ElementBrushProperty

Identifies the ElementBrush dependency property.

Declaration
public static readonly DependencyProperty ElementBrushProperty
Field Value
System.Windows.DependencyProperty

LabelFitModeProperty

Identifies the LabelFitMode property.

Declaration
public static readonly DependencyProperty LabelFitModeProperty
Field Value
System.Windows.DependencyProperty

LabelFormatProperty

Identifies the LabelFormat dependency property.

Declaration
public static readonly DependencyProperty LabelFormatProperty
Field Value
System.Windows.DependencyProperty

LabelIntervalProperty

Identifies the LabelInterval property.

Declaration
public static readonly DependencyProperty LabelIntervalProperty
Field Value
System.Windows.DependencyProperty

LabelRotationAngleProperty

Identifies the LabelRotationAngle property.

Declaration
public static readonly DependencyProperty LabelRotationAngleProperty
Field Value
System.Windows.DependencyProperty

LabelStyleProperty

Identifies the LabelStyle property.

Declaration
public static readonly DependencyProperty LabelStyleProperty
Field Value
System.Windows.DependencyProperty

LabelTemplateProperty

Identifies the LabelTemplate property.

Declaration
public static readonly DependencyProperty LabelTemplateProperty
Field Value
System.Windows.DependencyProperty

LabelTemplateSelectorProperty

Identifies the LabelTemplateSelector property.

Declaration
public static readonly DependencyProperty LabelTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty

LineDashArrayProperty

Identifies the LineDashArray property.

Declaration
public static readonly DependencyProperty LineDashArrayProperty
Field Value
System.Windows.DependencyProperty

LineStrokeProperty

Identifies the LineStroke property.

Declaration
public static readonly DependencyProperty LineStrokeProperty
Field Value
System.Windows.DependencyProperty

MajorTickStyleProperty

Identifies the MajorTickStyle property.

Declaration
public static readonly DependencyProperty MajorTickStyleProperty
Field Value
System.Windows.DependencyProperty

MajorTickTemplateProperty

Identifies the MajorTickTemplate property.

Declaration
public static readonly DependencyProperty MajorTickTemplateProperty
Field Value
System.Windows.DependencyProperty

ShowLabelsProperty

Identifies the ShowLabels property.

Declaration
public static readonly DependencyProperty ShowLabelsProperty
Field Value
System.Windows.DependencyProperty

TitleProperty

Identifies the Title dependency property.

Declaration
public static readonly DependencyProperty TitleProperty
Field Value
System.Windows.DependencyProperty

TitleTemplateProperty

Identifies the TitleTemplate property.

Declaration
public static readonly DependencyProperty TitleTemplateProperty
Field Value
System.Windows.DependencyProperty

Properties

ElementBrush

Gets or sets the brush that is applied to the axis line and ticks.

Declaration
public Brush ElementBrush { get; set; }
Property Value
System.Windows.Media.Brush

The element brush.

LabelFitMode

Gets or sets a value that determines how the axis labels will be laid out when they are overlapping each other.

Declaration
public AxisLabelFitMode LabelFitMode { get; set; }
Property Value
AxisLabelFitMode

LabelFormat

Gets or sets the format used to format all the labels present on the axis.

Declaration
public string LabelFormat { get; set; }
Property Value
System.String

LabelInterval

Gets or sets the step at which labels are positioned.

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

LabelOffset

Gets or sets index-based offset of the first tick to be displayed.

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

LabelRotationAngle

Gets or sets the rotation angle of the labels when LabelFitMode equals Rotate.

Declaration
public double LabelRotationAngle { get; set; }
Property Value
System.Double

LabelStyle

Gets or sets the System.Windows.Style to be applied to the default System.Windows.Controls.TextBlock instance created when LabelTemplate property is not specified. Creating a System.Windows.Controls.TextBlock instance per label instead of a System.Windows.Controls.ContentPresenter gives a huge performance boost.

Declaration
public Style LabelStyle { get; set; }
Property Value
System.Windows.Style

LabelTemplate

Gets or sets the System.Windows.DataTemplate used to visualize axis labels.

Declaration
public DataTemplate LabelTemplate { get; set; }
Property Value
System.Windows.DataTemplate

LabelTemplateSelector

Gets or sets the System.Windows.Controls.DataTemplateSelector used to provide conditional System.Windows.DataTemplate look-up when axis labels are visualized.

Declaration
public DataTemplateSelector LabelTemplateSelector { get; set; }
Property Value
System.Windows.Controls.DataTemplateSelector

LastLabelVisibility

Gets or sets the strategy that defines the last axis label visibility.

Declaration
public AxisLastLabelVisibility LastLabelVisibility { get; set; }
Property Value
AxisLastLabelVisibility

LineDashArray

Gets or sets the pattern used when drawing axis line.

Declaration
public DoubleCollection LineDashArray { get; set; }
Property Value
System.Windows.Media.DoubleCollection

LineStroke

Gets or sets the System.Windows.Media.Brush object that defines the stroke of the System.Windows.Shapes.Shape shape used to display axis' line.

Declaration
public Brush LineStroke { get; set; }
Property Value
System.Windows.Media.Brush

LineThickness

Gets or sets the thickness of the System.Windows.Shapes.Shape used to display the stroke of the axis.

Declaration
public double LineThickness { get; set; }
Property Value
System.Double

MajorTickLength

Gets or sets the length of the major tick.

Declaration
public double MajorTickLength { get; set; }
Property Value
System.Double

MajorTickOffset

Gets or sets index-based offset of the first tick to be displayed.

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

MajorTickStyle

Gets or sets the style for each System.Windows.Shapes.Rectangle instance created to represent a major tick when no MajorTickTemplate is specified. Creating a System.Windows.Shapes.Rectangle instance per tick instead of a System.Windows.Controls.ContentPresenter gives a huge performance boost.

Declaration
public Style MajorTickStyle { get; set; }
Property Value
System.Windows.Style

MajorTickTemplate

Gets or sets the System.Windows.DataTemplate instance used to visualize major ticks on the axis. If this value is not specified ticks will be presented by a System.Windows.Shapes.Rectangle shape.

Declaration
public DataTemplate MajorTickTemplate { get; set; }
Property Value
System.Windows.DataTemplate

ShowLabels

Gets or sets a value indicating whether labels will be displayed on this axis.

Declaration
public bool ShowLabels { get; set; }
Property Value
System.Boolean

SmartLabelsMode

Gets or sets the smart labels mode that will be used to avoid overlapping labels.

Declaration
public AxisSmartLabelsMode SmartLabelsMode { get; set; }
Property Value
AxisSmartLabelsMode

TickThickness

Gets or sets the thickness of a single tick present on the axis. Useful when custom tick templates are specified.

Declaration
public double TickThickness { get; set; }
Property Value
System.Double

Title

Gets or sets the title of the associated logical axis model.

Declaration
public object Title { get; set; }
Property Value
System.Object

TitleTemplate

Gets or sets the System.Windows.DataTemplate instance used to visualize the axis's title.

Declaration
public DataTemplate TitleTemplate { get; set; }
Property Value
System.Windows.DataTemplate

Methods

GetTickTemplate(TickType)

Gets the System.Windows.DataTemplate instance used to visualize the a tick with the specified TickType.

Declaration
protected virtual DataTemplate GetTickTemplate(TickType tickType)
Parameters
TickType tickType

Returns
System.Windows.DataTemplate

MeasureNodeOverride(ChartNode, Object)

Core entry point for calculating the size of a node's content.

Declaration
protected override RadSize MeasureNodeOverride(ChartNode node, object content)
Parameters
ChartNode node

System.Object content

Returns
RadSize

Overrides
PresenterBase.MeasureNodeOverride(ChartNode, Object)

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration
public override void OnApplyTemplate()
Overrides
PresenterBase.OnApplyTemplate()

OnAttached()

Occurs when the presenter has been successfully attached to its owning RadChartBase instance.

Declaration
protected override void OnAttached()
Overrides
ChartElementPresenter.OnAttached()

OnCreateAutomationPeer()

Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.

OnDetached(RadChartBase)

Occurs when the presenter has been successfully detached from its owning RadChartBase instance.

Declaration
protected override void OnDetached(RadChartBase oldChart)
Parameters
RadChartBase oldChart

Overrides
ChartElementPresenter.OnDetached(RadChartBase)

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

Overrides
PresenterBase.OnInitialized(EventArgs)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML 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.