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

Display current value via AxisY

How i can display label with current value on AxisY.

1 Reply

YG Yuvaraj Gajaraj Syncfusion Team January 20, 2023 12:38 PM UTC

Hi Bar,

Your requirement can be achieved in the following ways,

Solution 1:

You can achieve this with the help of the crosshairBehavior property in the chart, it will help you to show the current y value on the y-axis in the tooltip. The crosshair will be activated once you touch and hold it anywhere on the chart area. Once activated, it will appear in the UI and move based on your touch movement until you stop touching on the chart. We have shared the online demo sample link and UG documentation below for your reference. 

Sample: https://flutter.syncfusion.com/#/cartesian-charts/user-interactions/crosshair

UG, https://help.syncfusion.com/flutter/cartesian-charts/trackball-crosshair#crosshair

Solution 2:

Also, you can show the y-value of the current data point in the chart with the help of the dataLabelSettings property in the series. We have shared the online sample and User Guide (UG) documentation below for your requirement.

Sample: https://flutter.syncfusion.com/#/cartesian-charts/series-features/data-label/default-data-labels

UG, https://help.syncfusion.com/flutter/cartesian-charts/marker-datalabel#data-label

If this is not your case then, please share more information on your requirement in detail, along with screenshots or screen recordings. This will help us assist you in a better way.



Live Chat Icon For mobile
Up arrow icon