Hi,
I need to change the tooltip TEXT showed in my RadChartView serie but I have no idea of how to do this.
Could anyone help?
Thank you.
11 Answers, 1 is accepted
0
                                Accepted
Hi Rafael,
Thank you for writing.
You can use the DataPointTooltipTextNeeded event to change the default text:
Please let me know if there is something else I can help you with.
 
Regards,
Dimitar
Telerik
                                        Thank you for writing.
You can use the DataPointTooltipTextNeeded event to change the default text:
public RadForm1(){    InitializeComponent();           var tooltipController = new ChartTooltipController();    tooltipController.DataPointTooltipTextNeeded += tooltipController_DataPointTooltipTextNeeded;    radChartView1.Controllers.Add(tooltipController);}  void tooltipController_DataPointTooltipTextNeeded(object sender, DataPointTooltipTextNeededEventArgs e){    e.Text = "MyText";}Please let me know if there is something else I can help you with.
Dimitar
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the 
Telerik Feedback Portal
and vote to affect the priority of the items
0
                                
                                                    Rafael
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 30 Nov 2015, 01:51 PM
                                            
                                        That is it! ;)
Thank you!
0
                                
                                                    William
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 03 Feb 2017, 07:11 PM
                                            
                                        This tooltip capability works with radChartView - does it work with radCartesianChart?
                                        0
                                Hello William,
Yes, it does. If you are using line series, you may need to set the size of the data point:
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Telerik by Progress
                                        Yes, it does. If you are using line series, you may need to set the size of the data point:
LineSeries lineSeries2 = new LineSeries();lineSeries2.PointSize = new SizeF(20, 20);I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
                                
                                                    William
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 06 Feb 2017, 02:57 PM
                                            
                                        Thank you - that worked. How do I change the content of the tooltip? I need to be able to format the date, as I have done with the Trackball object (using OnTrackInfoUpdated).
                                        0
                                
                                                    William
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 06 Feb 2017, 03:06 PM
                                            
                                        Second question - I have been able to show the tooltip when I put entries into the XAML. How do I put the tooltip capability into the C# for columns that are added to the plot in the code?
                                        0
                                Hello William,
It appears that you are using the WPF chart, however, this forum is for the WinForms chart. This is why I want to kindly ask you to post your questions in the appropriate forum section: UI for WPF Forums - Telerik Community.
Thank you for your understanding.
  
Regards,
Dimitar
Telerik by Progress
                                        It appears that you are using the WPF chart, however, this forum is for the WinForms chart. This is why I want to kindly ask you to post your questions in the appropriate forum section: UI for WPF Forums - Telerik Community.
Thank you for your understanding.
Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
                                
                                                    John
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 25 Apr 2017, 04:52 PM
                                            
                                        Hi,
I'm have a Chartview barchart and want to display the Series, Category and value in the tooltip. How do I get the Series name from the Datapoint (or elsewhere) in the event.
Thanks,
John
0
                                John Rafael,
The following example shows how you can achieve this:
 
 
 
Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Telerik by Progress
                                        The following example shows how you can achieve this:
public RadForm1(){    InitializeComponent();       ChartTooltipController tooltipController = new ChartTooltipController();    tooltipController.DataPointTooltipTextNeeded += tooltipController_DataPointTooltipTextNeeded;    this.radChartView1.Controllers.Add(tooltipController);}private void tooltipController_DataPointTooltipTextNeeded(object sender, DataPointTooltipTextNeededEventArgs e){    var point = e.DataPoint as CategoricalDataPoint;    var series = point.Presenter as BarSeries;    e.Text = string.Format("Value: {0}, Category: {1}, Series: {2}", point.Value, point.Category, series.Name);}Do not hesitate to contact us if you have other questions.
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
                                
                                                    Kalpesh
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 29 Jul 2017, 10:16 AM
                                            
                                        Thank you sir for your post.
I have getting one problem that is "tooltipController_DataPointTooltipTextNeeded" is not getting fire not in mouse move or mouse click.
Need to fire manually or need to do other action to fire it ?.
0
                                Hello Kalpesh,
Make sure you are clicking on a data point. For example, you can make the points larger:
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
                                        Make sure you are clicking on a data point. For example, you can make the points larger:
LineSeries lineSeries = new LineSeries();lineSeries.PointSize = new SizeF(20, 20);I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
