[]
The following quick start guide is intended to get you up and running with Bullet Graph. In this quick start, you start by creating a new application, adding a Bullet Graph to it, and customizing the control by adding the gauge value and specifying the values to be displayed on it.
The following image depicts the Bullet Graph control with gauge value set as 50.
type=note
Note: Blazor Server App or server-side app can be created using the Blazor Server App template. For more details, see Blazor Server topic under Blazor Project Types.
In the Solution Explorer, right click Dependencies and select Manage NuGet Packages.
In NuGet Package Manager, select nuget.org as the Package source.
Search and select the following packages and click Install.
Navigate to the wwwroot, open index.html file.
Register the client resources by adding the following lines of code to the <head> tag.
<link rel="stylesheet" href="/_content/C1.Blazor.Core/styles.css" />
Add the following code to the <body> tag.
<script src="/_content/C1.Blazor.Core/scripts.js"></script>
Add the C1BulletGraph control and set the value to be displayed on the gauge using the Value property. Additionally, you can also set which values should be displayed as text in the gauge using the TextVisibility property as shown in the following code. This property uses the GaugeTextVisibility enumeration to specify the value to be displayed as text.
<C1BulletGraph Value="50" TextVisibility="GaugeTextVisibility.All"></C1BulletGraph>