RadCartesianChartchat Title Template Issue

2 posts, 0 answers
  1. Shree
    Shree avatar
    2 posts
    Member since:
    Apr 2013

    Posted 23 May 2013 Link to this post


     I have implement  RadCartesianChartchat with two Y axis , 1 from design level & 2nd at runtime. when i try to set TitleTemplate using DataTemplate at run time it placed top alignment of the chart please check the attachment.

    i want to place it at center of the chart....how can i achive this?


    thx
    shree
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 28 May 2013 Link to this post

    Hello Shree,

     You need to set the axis title via the Title property of the Axis for the inner measurements and arrangements that Chart does to it to get applied. Here's a sample:

    <telerik:RadCartesianChart.VerticalAxis>
                 <telerik:LinearAxis Maximum="100" Title="my test title here">
                     <telerik:LinearAxis.TitleTemplate>
                         <DataTemplate>
                              <TextBlock Text="{Binding}" />
                         </DataTemplate>
                     </telerik:LinearAxis.TitleTemplate>
                 </telerik:LinearAxis>
    </telerik:RadCartesianChart.VerticalAxis>

    Regards,
    Evgenia
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top