New to Telerik UI for WPF? Download free 30-day trial


This topic covers only the properties that are specific to the Y-axis. If you want to learn more about the properties that are common to both X and Y axes take a look at the Axes Overview topic.

WPF RadChart

Besides the common properties, Y-axis has some specific properties, explained in the list below:

  • MinorTickPointMultiplier- specifies the number of minor ticks per major tick, i.e the number of the minor ticks between two major ticks.

  • MinorTicksVisibility- specifies whether the minor tick marks on the axis should be visible.

  • MinorGridLinesVisibility- specifies whether the minor axis grid lines should be visible. See Striplines and Gridlines.

  • ExtendDirection- specifies the direction in which the axis range should be extended.

AxisY.ExtendDirection is of type AxisExtendDirection and has the following options:

  • Up - when selected, the upper end of the axis will be extended.

  • Down - when selected, the lower end of the axis will be extended.

  • Both - when selected, the upper and the lower end of the axis will be extended.

  • Smart - when selected, the upper and the lower end of the axis will be extended unless 0 is set to MinValue or MaxValue. In this case the axis will not be extended in the respective direction.

  • None - when selected, the axis will not be extended.

In the example below you can see how changing the ExtensionDirection properties reflects the charts. Also, notice the result when MinorTickPointMultiplier is set to 5.

<telerik:RadChart x:Name="radChart"> 
                        <telerik:AxisY Title="Ampere [A]" 
                                       MinorTicksVisibility="Visible" /> 

Telerik.Windows.Controls.RadChart radChart = new Telerik.Windows.Controls.RadChart(); 
radChart.DefaultView.ChartArea.AxisY.MinorTicksVisibility = Visibility.Visible; 
radChart.DefaultView.ChartArea.AxisY.MinorTickPointMultiplier = 5; 
radChart.DefaultView.ChartArea.AxisY.ExtendDirection = AxisExtendDirection.Down; 
radChart.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "0"; 
radChart.DefaultView.ChartArea.AxisY.Title="Ampere [A]"; 
Dim radChart As New Telerik.Windows.Controls.RadChart() 
radChart.DefaultView.ChartArea.AxisY.MinorTicksVisibility = Visibility.Visible 
radChart.DefaultView.ChartArea.AxisY.MinorTickPointMultiplier = 5 
radChart.DefaultView.ChartArea.AxisY.ExtendDirection = AxisExtendDirection.Down 
radChart.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "0" 
radChart.DefaultView.ChartArea.AxisY.Title = "Ampere [A]" 

And here is a snapshot of the result. You can see how the Y-axis ticks are placed - there are four minor ticks between each 2 major ones. Moreover the visualization of the chart varies depending on the value specified for the ExtendDirection.

WPF RadChart

WPF RadChart

WPF RadChart

WPF RadChart

WPF RadChart

See Also

In this article