Skip to content

Commit 109d140

Browse files
committed
Prepared Circular Gauge UG samples
1 parent 76697d2 commit 109d140

File tree

192 files changed

+149653
-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.

192 files changed

+149653
-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>net6.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="20.2.0.40" />
11+
</ItemGroup>
12+
13+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.32112.339
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AnnotationandLegendSample", "AnnotationandLegendSample.csproj", "{C92D25F9-BAAD-457C-84A9-70BD3145F573}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{C92D25F9-BAAD-457C-84A9-70BD3145F573}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{C92D25F9-BAAD-457C-84A9-70BD3145F573}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{C92D25F9-BAAD-457C-84A9-70BD3145F573}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{C92D25F9-BAAD-457C-84A9-70BD3145F573}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {4B533C68-443A-49F3-879B-18F01966E16C}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@page
2+
@model ErrorModel
3+
@{
4+
ViewData["Title"] = "Error";
5+
}
6+
7+
<h1 class="text-danger">Error.</h1>
8+
<h2 class="text-danger">An error occurred while processing your request.</h2>
9+
10+
@if (Model.ShowRequestId)
11+
{
12+
<p>
13+
<strong>Request ID:</strong> <code>@Model.RequestId</code>
14+
</p>
15+
}
16+
17+
<h3>Development Mode</h3>
18+
<p>
19+
Swapping to the <strong>Development</strong> environment displays detailed information about the error that occurred.
20+
</p>
21+
<p>
22+
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
23+
It can result in displaying sensitive information from exceptions to end users.
24+
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
25+
and restarting the app.
26+
</p>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
using System.Diagnostics;
4+
5+
namespace AnnotationandLegendSample.Pages
6+
{
7+
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
8+
[IgnoreAntiforgeryToken]
9+
public class ErrorModel : PageModel
10+
{
11+
public string? RequestId { get; set; }
12+
13+
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
14+
15+
private readonly ILogger<ErrorModel> _logger;
16+
17+
public ErrorModel(ILogger<ErrorModel> logger)
18+
{
19+
_logger = logger;
20+
}
21+
22+
public void OnGet()
23+
{
24+
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
25+
}
26+
}
27+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@page
2+
@model IndexModel
3+
@{
4+
ViewData["Title"] = "Home page";
5+
}
6+
7+
<div class="text-center">
8+
<div id="container">
9+
<ejs-circulargauge id="circular">
10+
<e-circulargauge-axes>
11+
<e-circulargauge-axis>
12+
<e-circulargauge-annotations>
13+
<e-circulargauge-annotation content="#annotation-template" zIndex="1"></e-circulargauge-annotation>
14+
</e-circulargauge-annotations>
15+
<e-circulargauge-pointers>
16+
<e-circulargauge-pointer value="50"></e-circulargauge-pointer>
17+
</e-circulargauge-pointers>
18+
</e-circulargauge-axis>
19+
</e-circulargauge-axes>
20+
</ejs-circulargauge>
21+
</div>
22+
<script id='annotation-template' type="text/x-template">
23+
<div id='templateWrap'>
24+
<div class='des'>
25+
<span>Pointer Value : 50</span>
26+
</div>
27+
</div>
28+
</script>
29+
</div>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace AnnotationandLegendSample.Pages
5+
{
6+
public class IndexModel : PageModel
7+
{
8+
private readonly ILogger<IndexModel> _logger;
9+
10+
public IndexModel(ILogger<IndexModel> logger)
11+
{
12+
_logger = logger;
13+
}
14+
15+
public void OnGet()
16+
{
17+
18+
}
19+
}
20+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@page
2+
@model AnnotationandLegendSample.Pages.LegendTextCustomModel
3+
@{
4+
}
5+
<ejs-circulargauge id="circular">
6+
<e-circulargauge-legendsettings visible="true">
7+
</e-circulargauge-legendsettings>
8+
<e-circulargauge-axes>
9+
<e-circulargauge-axis minimum="0" maximum="100">
10+
<e-axis-labelstyle useRangeColor="true">
11+
</e-axis-labelstyle>
12+
<e-axis-majorticks useRangeColor="true"></e-axis-majorticks>
13+
<e-axis-minorticks useRangeColor="true"></e-axis-minorticks>
14+
<e-circulargauge-ranges>
15+
<e-circulargauge-range start="0" end="25" radius="108%" legendText="Light air"></e-circulargauge-range>
16+
<e-circulargauge-range start="25" end="50" radius="70%" legendText="Light air"></e-circulargauge-range>
17+
<e-circulargauge-range start="50" end="75" radius="70%" legendText="Light breeze"></e-circulargauge-range>
18+
<e-circulargauge-range start="75" end="100" radius="108%" legendText="Gentle breeze"></e-circulargauge-range>
19+
</e-circulargauge-ranges>
20+
</e-circulargauge-axis>
21+
</e-circulargauge-axes>
22+
</ejs-circulargauge>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace AnnotationandLegendSample.Pages
5+
{
6+
public class LegendTextCustomModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
}
12+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@page
2+
@model AnnotationandLegendSample.Pages.LegendTextFontModel
3+
@{
4+
}
5+
<ejs-circulargauge id="circular">
6+
<e-circulargauge-legendsettings visible="true" shapeWidth="30" shapeHeight="30" padding="15">
7+
<e-legendsettings-border width="3" color="green"></e-legendsettings-border>
8+
</e-circulargauge-legendsettings>
9+
<e-circulargauge-axes>
10+
<e-circulargauge-axis minimum="0" maximum="100">
11+
<e-axis-labelstyle useRangeColor="true">
12+
</e-axis-labelstyle>
13+
<e-axis-majorticks useRangeColor="true"></e-axis-majorticks>
14+
<e-axis-minorticks useRangeColor="true"></e-axis-minorticks>
15+
<e-circulargauge-ranges>
16+
<e-circulargauge-range start="0" end="25" radius="108%"></e-circulargauge-range>
17+
<e-circulargauge-range start="25" end="50" radius="70%"></e-circulargauge-range>
18+
<e-circulargauge-range start="50" end="75" radius="70%"></e-circulargauge-range>
19+
<e-circulargauge-range start="75" end="100" radius="108%"></e-circulargauge-range>
20+
</e-circulargauge-ranges>
21+
</e-circulargauge-axis>
22+
</e-circulargauge-axes>
23+
</ejs-circulargauge>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace AnnotationandLegendSample.Pages
5+
{
6+
public class LegendTextFontModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)