how to change the position of the tool tip

Hi,

Can you please help me in changing the position for the tool tip. As its always coming at the bottom with my code(I am having a stack with a label).

3 Replies

MP Michael Prabhu M Syncfusion Team September 18, 2018 11:38 AM UTC

Hi Sweety, 
 
Greetings from Syncfusion, we have analyzed your requirement to place the tooltip in a desired position as your current tooltip is rendered at the bottom in a column series, and regarding this, we like to explain the behavior of our tooltip in detail. Our tooltip will arrange smartly based on the position of the data, by default a tooltip will always appear at the top of the data point, but in some case let us say for e.g. your y-axis maximum range is 50 and your data point is 49, then the tooltip will not have enough space to showcase it at the top of the data point and thus it changes the position to bottom smartly to show the full tooltip. 
 
But in your case, you are using a tooltip template with stack layout and listview bound to a collection and thus the stack layout size increases and there is no space to show case the tooltip at top by default and it moves to the bottom and both cases due to long list there is no space to view the tooltip fully.  
 
So, we recommend you to use ViewAnnotation and SelectionChanged event in chart to achieve your requirement to show a list on clicking a data point instead of tooltip template. The ViewAnnotation can be placed anywhere inside the chart using SelectionChagned event.  
 
You can learn more on ViewAnnotation and SelectionChagned event from the below user guide documents 
 
UG links: 
 
 
 
We are currently preparing a sample based on this and we will update you the sample by tomorrow September 19th 2018, we appreciate your patience until then. 
 
Thanks, 
Michael  
 
 
 



SR Sweety Rani September 19, 2018 04:02 AM UTC

Hi,

Thanks for the reply. We need to show the tooltip info on right side of the bar.


MP Michael Prabhu M Syncfusion Team September 19, 2018 11:07 AM UTC

Hi Sweety, 
 
Thanks for your patience, we have provided sample for this requirement along with your other requirement in the forum #139903. So please follow the forum #139903 for solution. 
 
Regards, 
Michael 


Loader.
Up arrow icon