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

Tooltip - Include both X and Y Axis Values?

3 Answers 122 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Randy Minder
Top achievements
Rank 1
Randy Minder asked on 21 Dec 2011, 04:19 PM
We're evaluating RadChart 2011-Q3. We like the tooltip concept, but it would be much more useful to us if we could somehow get both the Y axis and X axis value to display to the user. I can't seem to find a way to do this. Is it possible?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 22 Dec 2011, 06:36 PM
Hello,

Yes, this can easily be achieved by setting the ItemToolTipFormat property of the series. I have pasted some code below.
<telerik:RadChart>
 <telerik:RadChart.SeriesMappings>
  <telerik:SeriesMapping>
   <telerik:SeriesMapping.SeriesDefinition>
    <telerik:BarSeriesDefinition ItemToolTipFormat="the X value is #X, the Y value is #Y" ShowItemToolTips="True" />
    </telerik:SeriesMapping.SeriesDefinition>
   <telerik:ItemMapping DataPointMember="XValue" FieldName="Day" />
   <telerik:ItemMapping DataPointMember="YValue" FieldName="Degrees" />
   </telerik:SeriesMapping>
 </telerik:RadChart.SeriesMappings>
</telerik:RadChart>

You can read about other format expressions here. Note that it is also possible to access your business object's properties through the #DATAITEM token.

This section on ToolTips might also be interesting to you as it demonstrates how to format the tooltip and how to set a custom tooltip content. You can also find an example of setting a custom tooltip content in our demos (the demo is called Custom Tooltips).

Hope the above information and links help.

Greetings,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Purna
Top achievements
Rank 1
answered on 21 Nov 2017, 01:20 AM

How to have the same thing in radcartesianChart?

Telerik.Windows.Controls.ChartView.BarSeries doesnot have the property ItemToolTipFormat

 

0
Martin Ivanov
Telerik team
answered on 22 Nov 2017, 10:13 AM
Hello Purna,

I answered your question in the other forum. Can you please check it there?

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Chart
Asked by
Randy Minder
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Purna
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or