Edit this page

GridLine Annotations

GridLine annotations are lines or circles that cross the chart grid at location on the axis, specified by their Value property.

Cartesian GridLine Annotation

In the case of the CartesianChart, the GridLine represents a vertical or horizontal line that crosses the entire plot area.

Here is what CartesianGridLineAnnotation looks like:

XAML

<telerik:CartesianGridLineAnnotation Value="6" Stroke="Red" StrokeThickness="1" Axis="{Binding ElementName=verticalAxis}"/>
<telerik:CartesianGridLineAnnotation Value="2.8" Stroke="Blue" StrokeThickness="1" Axis="{Binding ElementName=horizontalAxis}"/>

Rad Chart View-annotations-cartesian-gridline

Polar Axis GridLine Annotation

Polar Axis GridLines represent concentric circles that cross the polar axis at the corresponding Value.

Here is what PolarAxisGridLineAnnotation looks like:

XAML

<telerik:PolarAxisGridLineAnnotation Value="2" Stroke="Red"/>
<telerik:PolarAxisGridLineAnnotation Value="7" Stroke="LightGreen"/>
<telerik:PolarAxisGridLineAnnotation Value="8" Stroke="LightBlue"/>

Rad Chart View-annotations-polar-gridline

Radial Axis GridLine Annotation

Radial Axis GridLines basically represent the radius of the PolarChart.

Here is what RadialAxisGridLineAnnotation looks like:

XAML

<telerik:RadialAxisGridLineAnnotation Value="30" Stroke="Red"/>
<telerik:RadialAxisGridLineAnnotation Value="60" Stroke="LightGreen"/>
<telerik:RadialAxisGridLineAnnotation Value="90" Stroke="LightBlue"/>

Rad Chart View-annotations-radial-gridline

Properties

Common:

  • DashArray

  • Stroke

  • StrokeThickness

Cartesian:

  • Axis The Cartesian GridLine Annotation needs to be associated with horizontal or vertical axis explicitly.

  • Value (of type object) The place on the associated axis where the annotation crosses it. When the associated axis is numerical (Linear or Logarithmic) a numeric value is expected and when it is a CategoricalAxis - a category.

  • Label The string that is displayed in the label.

  • LabelDefinition Defines the position of the annotation label, check theAnnotation Labels help topic for more details.

Polar:

  • Value (of type double) Specifies the location on the polar axis (the radius), where the grid line will cross.

Radial:

  • Value (of type object) Specifies the location on the radial axis, where the grid line will cross. When the radial axis is NumericRadialAxis a numeric value is expected and when it is a CategoricalRadialAxis - a category.