We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

programatically show tooltip

HI,

is there a way to programticaly show the tooltip on a given chart item?
please advise

7 Replies

PS Parthiban Sundaram Syncfusion Team July 7, 2016 03:11 PM UTC

Hi Ekstein,

We have analyzed and prepared the sample based on your requirement using Dependency Service in Xamarin Forms. Please download the sample from following location.

Sample : http://www.syncfusion.com/downloads/support/forum/124883/ze/Sample-64298658 
Thanks,
Parthiban S 

Tooltip



EM Ekstein michael July 7, 2016 03:53 PM UTC

Hi Parthiban,
thank you for you replay 

I'm not sure I explain my needed correctly
my screen is divided into two part
I have some data with X/Y/Name ...
1. chart (ScatterSeries in my case) show the data on the graph
2. list of items name - show the name of the event with more info

I need the following:
when the user select item on the list, to popup the tooltip of the relevant item on the graph.
not sure from your example how to achieve this.

also,
more question:
1. can I show some image on the graph at a desire location?
2. Can I get the X/Y position of a give item on the chart? 

please advise,
Michael


PS Parthiban Sundaram Syncfusion Team July 8, 2016 01:36 PM UTC

Hi Ekstein,

We have analyzed and prepared the sample based on your requirement. Please download the sample from following location.

Sample : http://www.syncfusion.com/downloads/support/forum/124883/ze/Tooltip-1557116351 
Thanks, 
Parthiban S 



EM Ekstein michael July 8, 2016 06:02 PM UTC

Hi Parthiban

many thanks for your assistance.
But, unfortunately I'm not there yet.

I have few issue:
1. my x-Axis is datetime and I have no idea how to convert the datetime into double - I assume the change is in the yellow part 

if ((data as ChartDataPoint).XValue.ToString().Equals(e.SelectedItem.ToString()))
{
float pointX = (float)(chart.ValueToPoint(chart.PrimaryAxis, (double)(dataModel.DataPoints.IndexOf(data) + 1)));
float pointY = (float)(chart.ValueToPoint(chart.SecondaryAxis, (data as ChartDataPoint).YValue));
toolTip.ShowTooltip(pointX, pointY, chart);
break;
}


2. I'm using  TooltipTemplate - using your ChartTooltipExt somehow cause two tooltip to popup, one the regular and than the template one.

I'm using XAML to define my chart, I have no problem to define it in code

3. I have few data series from different kind on the chart, I need this behaviour only on one of them (hope this doesn't change anything)

many thanks for your assistance



EM Ekstein michael July 8, 2016 07:12 PM UTC

one more thing,
I have 4 series on the chart.
it popup all the tooltip at once once I tap on the screen,
I need it to popup only a single one


EM Ekstein michael July 9, 2016 08:34 AM UTC

hope this is the last thing
I'm replacing the chart data
if the chart has a tooltip shown it stay there and not being removed
is there a way to hide it?



YP Yuvaraj Palanisamy Syncfusion Team July 11, 2016 01:12 PM UTC

Hi Ekstein,

We have prepared the sample based on your requirement. Please download the sample from following location.

Sample : http://www.syncfusion.com/downloads/support/forum/124883/ze/Tooltip243696331  

Thanks,
Yuvaraj 


Loader.
Live Chat Icon For mobile
Up arrow icon