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

Append string to data marker label

Thread ID:





147228 Sep 4,2019 10:11 AM UTC Sep 4,2019 10:39 AM UTC Xamarin.Forms 1
Tags: SfChart
Asked On September 4, 2019 10:11 AM UTC

How do i append a string to the data marker label of barSeries

currently my label is shown as 93.09. i want it to display as 93.09 %

setting LabelContent to Percentage has caused the data marker to go all wrong.

Muneesh Kumar G [Syncfusion]
Replied On September 4, 2019 10:39 AM UTC

Hi Benjamin, 
Greetings from Syncfusion, 
We have analyzed your requirement and you can achieve this by setting LabelTemplate for DataMarker label and include the % symbol in template customization as per the below code snippet.  
Code snippet 
        <DataTemplate x:Key="dataMarkerTemplate"> 
            <StackLayout Orientation="Horizontal"> 
                <Label Text="{Binding Value}" VerticalOptions="Center" FontSize = "15"/> 
                <Label Text=" %" VerticalOptions="Center" FontSize = "15"/> 
    <chart:BarSeries ItemsSource="{Binding Data}" XBindingPath="Name" YBindingPath="Value"> 
            <chart:ChartDataMarker ShowLabel="True" LabelTemplate="{StaticResource dataMarkerTemplate}">  
Please let us know if you have any other queries.  
Muneesh Kumar G  


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