Class
Axis

Axis settings for plotting chart data in documents, providing shared range, formatting, visibility, and gridline configuration. Use as the base for category, value, and date axes when rendering charts.

Definition

Namespace:Telerik.Windows.Documents.Model.Drawing.Charts

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public abstract class Axis

Inheritance: objectAxis

Derived Classes: CategoryAxisDateAxisValueAxis

Constructors

Axis()

Initializes a new instance of the Axis class.

Declaration

cs-api-definition
protected Axis()

Properties

AxisType

Identifies the axis kind (value, category, or date) used to plot series.

Declaration

cs-api-definition
public abstract AxisType AxisType { get; }

Property Value

AxisType

IsVisible

Controls whether the axis line, labels, and gridlines are rendered.

Declaration

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

Property Value

bool

MajorGridlines

Line style for the axis’s major gridlines drawn across the plot area.

Declaration

cs-api-definition
public ChartLine MajorGridlines { get; }

Property Value

ChartLine

Max

Upper bound of the axis scale; when null the maximum is determined automatically. For data axes, use an OLE Automation date value; for a categorical axis, use the position of the category within the collection.

Declaration

cs-api-definition
public double? Max { get; set; }

Property Value

double?

Min

Lower bound of the axis scale; when null the minimum is determined automatically. For data axes, use an OLE Automation date value; for a categorical axis, use the position of the category within the collection.

Declaration

cs-api-definition
public double? Min { get; set; }

Property Value

double?

NumberFormat

Format string applied to axis values when rendered (e.g., numeric or date/time); affects label text only.

Declaration

cs-api-definition
public string NumberFormat { get; set; }

Property Value

string

Outline

Stroke style for the axis line; influences rendered thickness and color.

Declaration

cs-api-definition
public Outline Outline { get; }

Property Value

Outline

Methods

Clone()

Creates a deep copy of this axis, duplicating value range, visibility, number format, outline, and major gridline settings.

Declaration

cs-api-definition
public Axis Clone()

Returns

Axis

The deep copy of the object.