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
close icon

Marker Position and Size

Is it somehow possible to place a marker (for example a triangle) with its tip and not its center to the coordinates?

How can i prevent that the marker keeps it's size when the axes are rescaling?

1 Reply

GR Geetha Rajendran Syncfusion Team October 4, 2019 01:29 PM UTC

Hi Marcel, 
We have achieved your requirement by using the LabelTemplate property of ChartDataMarker. Please refer the below code. 
Code snippet [C#]: 
        <OnPlatform x:TypeArguments="x:String" x:Key="FontIcon"> 
            <On Platform="Android" Value="Segoe_MDL2_Assets.ttf#Segoe MDL2 Assets" /> 
            <On Platform="iOS" Value="/Assets/Segoe_MDL2_Assets.ttf#Segoe MDL2 Assets" /> 
            <On Platform="UWP" Value="Segoe MDL2 Assets"/> 
. . . 
<chart:ColumnSeries x:Name="series" ItemsSource="{Binding Data}" XBindingPath="XValue" YBindingPath="Growth" > 
        <chart:ChartDataMarker ShowMarker="False" > 
                <chart:DataMarkerLabelStyle OffsetY="-9" LabelPosition="Inner" /> 
                    <Label Text="&#xE878;"  
                                   TextColor="White" FontFamily="{StaticResource FontIcon}"> 
Geetha R. 

Live Chat Icon For mobile
Up arrow icon