Skip to content
Thomas Möller edited this page Apr 12, 2024 · 15 revisions

Class name

RadialAxis / XAxis / YAxis

Purpose / Description

This class contains methods and properties related to the Radial-, the X- and the Y-Axis.

Sub-Classes

Methods

  • none

Properties


Detailed description

The following sections contain a detailed description of the methods and properties.

AxisType

Description:

In this property you can control the type of the axis.
Usually, the default value gives satisfactory results.
This property is not available for radial axis.

Possible values:

  • (not defined)
  • linear
  • logarithmic
  • category
  • time
  • timeseries

Default value:

  • (not defined) This will lead to "linear" for dates and numbers and "category" for textual values.

Sample code:

myChart.Chart.XAxis.AxisType = chAxisType.atLogarithmic

Related to:

--

BeginAtZero

Description:

With this property you can specify if the axis starts with zero instead of the smallest value.

Default value:

False

Sample code:

myChart.Chart.XAxis.BeginAtZero= True

Related to:

TicksMin, TicksMax

LabelText

Description:

In this property you pass the text for the label of the axis.
This property is not used by radial axis.

Default value:

--

Sample code:

myChart.Chart.XAxis.LabelText = "Demo for x-axes label"

Related to:

Show

Show

Description:

With this property you can specify if an axis is shown.

Default value:

The default value depends on the chart type:

  • Line, Bar, Bubble, Scatter: True
  • Radar, Doughnut, Pie, PolarArea: False

Sample code:

myChart.Chart.XAxis.Show = True

Related to:

LabelText

StepSize

Description:

This property allows you to control the increment of the ticks on the axis.

Default value:

--

Sample code:

myChart.Chart.XAxis.StepSize = 2

Related to:

TicksMax, TicksMin

TicksMax

Description:

In this property you pass the maximum value for the ticks of the axis. This can be a number, a date or the name of a category.
In polar and radar charts only, numbers are allowed.

Default value:

--

Sample code:

myChart.Chart.XAxis.TicksMax = 2

Related to:

StepSize, TicksMin, BeginAtZero

TicksMin

Description:

In this property you pass the minimum value for the ticks of the axis. This can be a number, a date or the name of a category.
In polar and radar charts only, numbers are allowed.

Default value:

--

Sample code:

myChart.Chart.XAxis.TicksMin = 2

Related to:

StepSize, TicksMax, BeginAtZero