Edit this page

Getting Started

When you drag a RadBulletGraph from the Toolbox and drop it onto the form, the gauge gallery will offer you to pick up the desired type:

Figure 1: Gallery Types

bulletgraph-getting-started 001

note

If you do not choose a gauge's style and just close the gallery, an empty RadBulletGraph will be created.

You can change the gauge's style via the Smart tag's option Open Gallery as well.

Figure 2: Smart Tag Gallery Options

bulletgraph-getting-started 002

Once the control is added to the form you just need to synchronize the FeaturedMeasure and ComparativeMeasure values with your business logic values. For example you can see how the controls work with the following code:

Figure 3: Update Properties

bulletgraph-getting-started 003

Update Properties

Timer timer;
Random rand;

public BulletGraphCode()
{
    InitializeComponent();
    timer = new Timer();
    rand = new Random();
    timer.Interval = 1000;
    timer.Tick += timer_Tick;
    timer.Start();
}

void timer_Tick(object sender, EventArgs e)
{
    this.radBulletGraph1.FeaturedMeasure = rand.Next(100);
    this.radBulletGraph1.ComparativeMeasure = rand.Next(100);
}

Private timer As Timer
Private rand As Random
Public Sub New()
    InitializeComponent()
    timer = New Timer()
    rand = New Random()
    timer.Interval = 1000
    AddHandler timer.Tick, AddressOf timer_Tick
    timer.Start()
End Sub
Private Sub timer_Tick(ByVal sender As Object, ByVal e As EventArgs)
    radBulletGraph1.FeaturedMeasure = rand.Next(100)
    radBulletGraph1.ComparativeMeasure = rand.Next(100)
End Sub

important

Please note that when you select the style all elements will be automatically created and you can directly access them. You can create the control in code as well. More information is available in the following article:Getting Started

See Also