New to Telerik UI for WinUI? Download free 30-day trial

Labels

RadBulletGraph gives you the ability to control any aspect of its scale labels - from their position to their appearance and interval.

Label Display Interval

You can set the display interval of the labels with the LabelStep property.

Example 1: Setting LabelStep

<Grid xmlns:dataVisualization="using:Telerik.UI.Xaml.Controls.DataVisualization"> 
    <dataVisualization:RadBulletGraph Height="50" Width="300" StartValue="0" EndValue="100" LabelStep="10">           
    </dataVisualization:RadBulletGraph> 
</Grid> 

Figure 1: LabelStep

RadBulletGraph-LabelStep

Label Display Offset

Labels can be positioned in a relative matter below or above the FeaturedMeasure indicator with the LabelOffset property.

Example 2: Setting LabelOffset

<Grid xmlns:dataVisualization="using:Telerik.UI.Xaml.Controls.DataVisualization"> 
    <dataVisualization:RadBulletGraph Height="50" Width="300" StartValue="0" EndValue="100" LabelStep="10" LabelOffset="-50"> 
    </dataVisualization:RadBulletGraph> 
</Grid> 

Figure 2: Offset labels

RadBulletGraph-LabelOffset

Styling Labels

Use the LabelTemplate property to customize the look of the labels.

Example 3: Setting LabelTemplate

<Grid xmlns:dataVisualization="using:Telerik.UI.Xaml.Controls.DataVisualization"> 
    <dataVisualization:RadBulletGraph Height="50" Width="300" StartValue="0" EndValue="100" LabelStep="10" > 
        <dataVisualization:RadBulletGraph.LabelTemplate> 
            <DataTemplate> 
                <TextBlock Text="{Binding}" Foreground="Yellow" /> 
            </DataTemplate> 
        </dataVisualization:RadBulletGraph.LabelTemplate> 
    </dataVisualization:RadBulletGraph> 
</Grid> 

Figure 3: Styled labels

RadBulletGraph-LabelTemplate

In this article
Not finding the help you need?