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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

show tooltip for the last data

Thread ID:





149709 Dec 6,2019 08:04 AM UTC Dec 9,2019 06:31 AM UTC Flutter 1
Tags: SfCartesianChart
Asked On December 7, 2019 11:54 AM UTC

I use Syncfusion charts in my app but I need to always show a box that contains is the last information. like this image.

Dharanidharan Dharmasivam [Syncfusion]
Replied On December 9, 2019 06:31 AM UTC

Hi Shvansheikha, 
Greetings from Syncfusion. Your requirement can be achieved using the annotation feature. We have created a sample based on your scenario in which we have displayed the y-value of last data using the annotation and you can change this based on your scenario. Find the code snippet below to achieve this, 
annotations: <CartesianChartAnnotation>[ 
                widget: Container( 
                   child: Text( 
                      chartData[chartData.length - 1].sales.toString(), 
                coordinateUnit: CoordinateUnit.logicalPixel, 
                region: AnnotationRegion.plotArea, 
                x: 300, 
                y: 20), 
            // Other configurations 
For more information on annotation, find the user guide. 
Hope this helps. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon