Y-Axis

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.

Silverlight 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:RadChart.DefaultView> 
        <telerik:ChartDefaultView> 
            <telerik:ChartDefaultView.ChartArea> 
                <telerik:ChartArea> 
                    <telerik:ChartArea.AxisY> 
                        <telerik:AxisY Title="Ampere [A]" 
                                       DefaultLabelFormat="0" 
                                       ExtendDirection="Down" 
                                       MinorTickPointMultiplier="5" 
                                       MinorTicksVisibility="Visible" /> 
                    </telerik:ChartArea.AxisY> 
                </telerik:ChartArea> 
            </telerik:ChartDefaultView.ChartArea> 
        </telerik:ChartDefaultView> 
    </telerik:RadChart.DefaultView> 
</telerik:RadChart> 

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.

Silverlight RadChart

Silverlight RadChart

Silverlight RadChart

Silverlight RadChart

Silverlight RadChart

See Also

In this article