This is a migrated thread and some comments may be shown as answers.

RadCartesianChartchat Title Template Issue

1 Answer 47 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Shree
Top achievements
Rank 1
Shree asked on 23 May 2013, 02:08 PM

 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

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 28 May 2013, 12:52 PM
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.

Tags
Chart
Asked by
Shree
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or