Annotations not shown on RadCartesianChart

2 posts, 0 answers
  1. xamlcat
    xamlcat avatar
    4 posts
    Member since:
    Jan 2013

    Posted 03 May 2013 Link to this post


    I do have a RadCartesianChart inside a DataTemplate which does not show its defined Annotations (VerticalAxis' x:name is set and referred from the Annotations) . The same RadCartesianChart worked fine outside the DataTemplate on a project test, showing all the Annotations. I don't know what is happening, I suppose it's something I missed but I can't see what it is.


    <telerik:RadCartesianChart Grid.Column="1"
    view:ChartSeriesProviderBehavior.Series="{Binding Path=VisibleSeries}"

    <telerik:DateTimeContinuousAxis IsInverse="True" GapLength="0.14" LabelFitMode="Rotate" LabelRotationAngle="45" LabelFormat="dd MMM yyyy" Minimum="{Binding Path=Min}" Maximum="{Binding Path=Max}" />

    <telerik:LinearAxis x:Name="verticalAxis" />

    <telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=verticalAxis}" Value="2" Stroke="Red" StrokeThickness="1"/>
    <telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=verticalAxis}" Value="13" Stroke="Red" StrokeThickness="1"/>

    <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" PanMode="Horizontal" />
    <telerik:ChartTooltipBehavior Placement="Top" VerticalOffset="0" />


    Thanks for your help!
  2. xamlcat
    xamlcat avatar
    4 posts
    Member since:
    Jan 2013

    Posted 06 May 2013 Link to this post

    Solved. The RadCartesianChart axis were not set.
Back to Top