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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

programatically show tooltip

Thread ID:

Created:

Updated:

Platform:

Replies:

124883 Jul 6,2016 08:21 AM UTC Jul 11,2016 01:12 PM UTC Xamarin.Forms 7
loading
Tags: SfChart
Ekstein michael
Asked On July 6, 2016 08:21 AM UTC

HI,

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

Parthiban Sundaram [Syncfusion]
Replied On 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


Ekstein michael
Replied On 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

Parthiban Sundaram [Syncfusion]
Replied On 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 


Ekstein michael
Replied On 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


Ekstein michael
Replied On 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

Ekstein michael
Replied On 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?


Yuvaraj Palanisamy [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;