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

Tooltip method SHOW

Hi!

In Xamarin we had the "Show" method for the tooltip.

How can I do this in Maui?



3 Replies 1 reply marked as answer

RR Raja Ramalingam Syncfusion Team March 2, 2023 10:11 AM UTC

Hi Davi,


Currently we don’t have support in MAUI chart to show tooltip from code behind. We have already logged a feature request for this in our feedback portal, which you can find by visiting the following link:


https://www.syncfusion.com/feedback/40557


At this time, we do not have a specific timeline for when this feature will be implemented as our development priorities are determined by customer demand. If you would like to show your support for this feature, we encourage you to add your vote on the above link.


If you have any additional specifications or suggestions for this feature request, please feel free to leave them in the comments section of the feedback link. This will help us to understand how you would like to use it and how we can improve it.


Regards,

Raja.



DF Davi Fabiano September 21, 2023 01:40 PM UTC

Hi!


I have updated to the current version to use the released feature.

When I click on my list to display on the graph, the exact point does not appear.

Maybe the problem is with the float value? Format with 5 decimal places.

I noticed that when using balltrack the value is shown on the graph with 17 decimal places. Could it be that the graph is not respecting past values?


Image_1592_1695303542355

Image_5284_1695303608983



NT Nitheeshkumar Thangaraj Syncfusion Team September 22, 2023 11:19 AM UTC

Hi Davi,


We would like to inform you that we have reviewed your image. We suspect that there is a missing 'ValueToPoint' in that code. We have prepared a sample with a button click to show the tooltip. The code snippet and sample are provided below. We hope this helps you.


private void Button_Clicked(object sender, EventArgs e)

{

    var item = series.ItemsSource as ObservableCollection<Model>;

    var lastPoint = item[30];

    float chartPointX = chart.ValueToPoint(chart.XAxes[0], lastPoint.ValueX);

    float chartPointY = chart.ValueToPoint(chart.YAxes[0],lastPoint.ValueY);

tooltip.Show(chartPointX, chartPointY, true);

}


If you need any further assistance, please let us know.


Regards,

Nitheeshkumar.


Attachment: TooltipShow_4bdef69e.zip

Marked as answer
Loader.
Up arrow icon