Skip to content

Commit a4ba29b

Browse files
committed
Prepared Bullet Chart UG Sample
1 parent 9b05df5 commit a4ba29b

File tree

302 files changed

+225774
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

302 files changed

+225774
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="26.1.38" />
11+
</ItemGroup>
12+
13+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BulletChartSamples", "BulletChartSamples.csproj", "{736BCE85-C63C-451D-8DF5-0E8DB5201FEB}"
4+
EndProject
5+
Global
6+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7+
Debug|Any CPU = Debug|Any CPU
8+
Release|Any CPU = Release|Any CPU
9+
EndGlobalSection
10+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
11+
{736BCE85-C63C-451D-8DF5-0E8DB5201FEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
12+
{736BCE85-C63C-451D-8DF5-0E8DB5201FEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
13+
{736BCE85-C63C-451D-8DF5-0E8DB5201FEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
14+
{736BCE85-C63C-451D-8DF5-0E8DB5201FEB}.Release|Any CPU.Build.0 = Release|Any CPU
15+
EndGlobalSection
16+
EndGlobal
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@page
2+
@model BulletChartSamples.Pages.ActualBarTypes
3+
4+
@{
5+
List<ActualBarTypeData> bulletData = new List<ActualBarTypeData>
6+
{
7+
new ActualBarTypeData { value = 55, target = 75}
8+
};
9+
}
10+
11+
<ejs-bulletchart id="bulletgraph" title="'Sales Rate" type="@Syncfusion.EJ2.Charts.FeatureType.Dot" minimum="0" maximum="100" interval="20" valueField="value" dataSource="bulletData">
12+
<e-bullet-range-collection>
13+
<e-bullet-range end="35"></e-bullet-range>
14+
<e-bullet-range end="50"></e-bullet-range>
15+
<e-bullet-range end="100"></e-bullet-range>
16+
</e-bullet-range-collection>
17+
</ejs-bulletchart>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Microsoft.AspNetCore.Mvc.RazorPages;
2+
3+
namespace BulletChartSamples.Pages;
4+
5+
public class ActualBarTypes : PageModel
6+
{
7+
public void OnGet()
8+
{
9+
10+
}
11+
}
12+
public class ActualBarTypeData
13+
{
14+
public double value;
15+
public double target;
16+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@page
2+
@model BulletChartSamples.Pages.Animation
3+
4+
@{
5+
List<AnimationData> bulletData = new List<AnimationData>
6+
{
7+
new AnimationData { value = 55, target = 75}
8+
};
9+
}
10+
11+
<ejs-bulletchart id="bulletgraph" title="Sales Rate in dollars" subtitle="(in dollars $)" labelFormat="${value}" minimum="0" maximum="100" interval="20" targetField="target" valueField="value" dataSource="bulletData">
12+
<e-bullet-range-collection>
13+
<e-bullet-range end="35"></e-bullet-range>
14+
<e-bullet-range end="50"></e-bullet-range>
15+
<e-bullet-range end="100"></e-bullet-range>
16+
</e-bullet-range-collection>
17+
<e-bulletchart-animation enable="true"></e-bulletchart-animation>
18+
</ejs-bulletchart>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Microsoft.AspNetCore.Mvc.RazorPages;
2+
3+
namespace BulletChartSamples.Pages;
4+
5+
public class Animation : PageModel
6+
{
7+
public void OnGet()
8+
{
9+
10+
}
11+
}
12+
public class AnimationData
13+
{
14+
public double value;
15+
public double target;
16+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@page
2+
@model BulletChartSamples.Pages.CustomBorder
3+
4+
@{
5+
List<CustomBorderData> bulletData = new List<CustomBorderData>
6+
{
7+
new CustomBorderData { value = 55, target = 75}
8+
};
9+
}
10+
11+
<ejs-bulletchart id="bulletgraph" title="'Sales Rate" minimum="0" maximum="100" interval="20" valueField="value" dataSource="bulletData">
12+
<e-bullet-range-collection>
13+
<e-bullet-range end="35"></e-bullet-range>
14+
<e-bullet-range end="50"></e-bullet-range>
15+
<e-bullet-range end="100"></e-bullet-range>
16+
</e-bullet-range-collection>
17+
<e-bulletchart-valueborder width="3" color="red"></e-bulletchart-valueborder>
18+
</ejs-bulletchart>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Microsoft.AspNetCore.Mvc.RazorPages;
2+
3+
namespace BulletChartSamples.Pages;
4+
5+
public class CustomBorder : PageModel
6+
{
7+
public void OnGet()
8+
{
9+
10+
}
11+
}
12+
public class CustomBorderData
13+
{
14+
public double value;
15+
public double target;
16+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@page
2+
@model BulletChartSamples.Pages.CustomDataLabel
3+
4+
@{
5+
List<CustomData> bulletData = new List<CustomData>
6+
{
7+
new CustomData { value = 5, comparativeMeasureValue = 7.5, category= "2001"},
8+
new CustomData { value = 7, comparativeMeasureValue = 5, category= "2002"},
9+
new CustomData { value = 10, comparativeMeasureValue = 6, category= "2003"},
10+
new CustomData { value = 5, comparativeMeasureValue = 8, category= "2004"},
11+
new CustomData { value = 12, comparativeMeasureValue = 5, category= "2005"},
12+
new CustomData { value = 8, comparativeMeasureValue = 6, category= "2006"}
13+
};
14+
}
15+
16+
<ejs-bulletchart id="bulletgraph" height="400" title="Profit in %" minimum="0" maximum="20" interval="5" categoryField="category" valueField="value" targetField="comparativeMeasureValue" dataSource="bulletData">
17+
<e-bullet-range-collection>
18+
<e-bullet-range end="5"></e-bullet-range>
19+
<e-bullet-range end="15"></e-bullet-range>
20+
<e-bullet-range end="20"></e-bullet-range>
21+
</e-bullet-range-collection>
22+
<e-bulletchart-datalabel enable="true">
23+
<e-bulletchart-datalabel-labelstyle color="yellow" size="20"></e-bulletchart-datalabel-labelstyle>
24+
</e-bulletchart-datalabel>
25+
</ejs-bulletchart>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Microsoft.AspNetCore.Mvc.RazorPages;
2+
3+
namespace BulletChartSamples.Pages;
4+
5+
public class CustomDataLabel : PageModel
6+
{
7+
public void OnGet()
8+
{
9+
10+
}
11+
}
12+
public class CustomData
13+
{
14+
public double value;
15+
public double comparativeMeasureValue;
16+
public string category;
17+
}

0 commit comments

Comments
 (0)