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

[Solved] RadChart BarSeries value label or tooltip

3 Answers 245 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rohit
Top achievements
Rank 1
Rohit asked on 08 Apr 2013, 08:55 AM
Hi,

I have created a Bar chart. I want to show the bar value at the top of the bar or in the tool tip if someone point on the bar how to do it?

Rohit

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivaylo Gergov
Telerik team
answered on 08 Apr 2013, 11:39 AM
Hello Rohit,

In order to show the value on top of each bar you can set BarSeries.ShowLabels property to "True". You can make additional modifications with the labels through the LabelDefinitions associated with each series.
Alternatively, If you want to show the bar value in a tooltip you can use our ChartTooltipBehavior and set its ContentTemplate like this:

<telerik:RadCartesianChart.Behaviors>
     <telerik:ChartTooltipBehavior>
         <telerik:ChartTooltipBehavior.ContentTemplate>
             <DataTemplate>
                 <TextBlock Text="{Binding DataPoint.Value}" Foreground="Red"/>
             </DataTemplate>
         </telerik:ChartTooltipBehavior.ContentTemplate>
     </telerik:ChartTooltipBehavior>
 </telerik:RadCartesianChart.Behaviors>

I hope this helps. Let me know if I can assist you any further.

 

Regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Rohit
Top achievements
Rank 1
answered on 08 Apr 2013, 12:05 PM
hey Ivaylo,

Thanks for the reply, it worked for me.

Today I have downloaded the CHM file for RadControls for Windows 8 from documentations.Are these all small properties and other examples available there in the CHM?
or there is any other documentation?

Rohit
0
Ivaylo Gergov
Telerik team
answered on 08 Apr 2013, 03:07 PM
Hello Rohit,

This is our official documentation (it is actually a downloadable version of the content available online here) and it contains a lot of examples, including for TooltipBehavior (Controls-RadChart-Behaviors-Tooltip behavior).

I hope this information is useful.

 

All the best,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Rohit
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Rohit
Top achievements
Rank 1
Share this question
or