Bullet chart possible?

2 posts, 0 answers
  1. Erling Hagen
    Erling Hagen avatar
    1 posts
    Member since:
    Mar 2009

    Posted 24 Sep 2009 Link to this post


    I've been asked to create a bullet chart on a project. We've used Telerik controls so far, and would like to continue using it, but we can't seem to find a suitable gauge control. The Dundas package has one exactly like the one we require, but if possible we'd like to continue using Telerik. So does anyone now if it's possible to create a bullet chart using this package?

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 25 Sep 2009 Link to this post

    Hello Erling Hagen,

    I would recommend you to use linear gauge control to create bullet chart.  For example:
    <UserControl x:Class="Telerik.SL3.Gauge.Q2._2009.MainPage" 
        <Grid x:Name="LayoutRoot"  Background="White">  
                <SolidColorBrush x:Key="PoorBrush" Color="Red" /> 
                <SolidColorBrush x:Key="AverageBrush" Color="Yellow" /> 
                <SolidColorBrush x:Key="GoodBrush" Color="Green" /> 
                <ColumnDefinition Width="*" /> 
                <RowDefinition Height="Auto" /> 
                <RowDefinition Height="Auto" /> 
            <!-- Legend --> 
            <Border BorderBrush="Gray"   
                        <ColumnDefinition Width="Auto" /> 
                        <ColumnDefinition Width="Auto" /> 
                        <ColumnDefinition Width="Auto" /> 
                        <ColumnDefinition Width="Auto" /> 
                        <ColumnDefinition Width="Auto" /> 
                        <ColumnDefinition Width="Auto" /> 
                        <RowDefinition Height="Auto" /> 
                    <Rectangle Width="16" Height="16" Fill="{StaticResource PoorBrush}" /> 
                    <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="Poor" /> 
                    <Rectangle Grid.Column="2" Width="16" Height="16" Fill="{StaticResource AverageBrush}" /> 
                    <TextBlock Grid.Column="3" Margin="5,0,5,0" Text="Average" /> 
                    <Rectangle Grid.Column="4" Width="16" Height="16" Fill="{StaticResource GoodBrush}" /> 
                    <TextBlock Grid.Column="5" Margin="5,0,5,0" Text="Good" /> 
            <!-- Bullet chart --> 
            <gauges:LinearScale Grid.Row="1"   
                                Left="0.1" Top="0.2">  
                    <gauges:LinearRange Min="0" Max="30"   
                                        Background="{StaticResource PoorBrush}" /> 
                    <gauges:LinearRange Min="30" Max="75"   
                                        Background="{StaticResource AverageBrush}" /> 
                    <gauges:LinearRange Min="75" Max="100"   
                                        Background="{StaticResource GoodBrush}" /> 
                    <gauges:LinearBar x:Name="linearBar" 
                                      Value="60" /> 

    Andrey Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top