Skip to content

Commit 0d7a04d

Browse files
Merge pull request SyncfusionExamples#10 from Backiaraj/UG
Modified the ASP.NET Core sample and readme content
2 parents 647194a + a4ba29b commit 0d7a04d

File tree

1,081 files changed

+758435
-275
lines changed

Some content is hidden

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

1,081 files changed

+758435
-275
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>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.39" />
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.9.34728.123
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AccumulationChartType", "AccumulationChartType.csproj", "{1B95ED4D-63FF-4C57-A18B-DC6E3645D879}"
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+
{1B95ED4D-63FF-4C57-A18B-DC6E3645D879}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{1B95ED4D-63FF-4C57-A18B-DC6E3645D879}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{1B95ED4D-63FF-4C57-A18B-DC6E3645D879}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{1B95ED4D-63FF-4C57-A18B-DC6E3645D879}.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 = {CF63C6EA-B4C1-4668-B09C-16CCB3DD4E90}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@page
2+
@using static AccumulationChartType.Pages.ColorPaletteModel
3+
@model AccumulationChartType.Pages.ColorPaletteModel
4+
@{
5+
List<PieChartData> chartData = new List<PieChartData>
6+
{
7+
8+
new PieChartData { xValue = "Chrome", yValue = 37 },
9+
new PieChartData { xValue = "UC Browser", yValue = 17 },
10+
new PieChartData { xValue = "iPhone", yValue = 19 },
11+
new PieChartData { xValue = "Others", yValue = 4 },
12+
new PieChartData { xValue = "Opera", yValue = 11 },
13+
new PieChartData { xValue = "Android", yValue = 12 },
14+
};
15+
var palette = new string[] { "teal", "skyblue", "green", "red"};
16+
}
17+
18+
<ejs-accumulationchart id="container" enableBorderOnMouseMove="false">
19+
<e-accumulationchart-legendsettings visible="false">
20+
</e-accumulationchart-legendsettings>
21+
<e-accumulation-series-collection>
22+
<e-accumulation-series dataSource="chartData" xName="xValue" yName="yValue" name="Browser" palettes="palette">
23+
</e-accumulation-series>
24+
</e-accumulation-series-collection>
25+
</ejs-accumulationchart>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace AccumulationChartType.Pages
5+
{
6+
public class ColorPaletteModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
public class PieChartData
12+
{
13+
public string xValue;
14+
public double yValue;
15+
}
16+
}
17+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@page
2+
@using static AccumulationChartType.Pages.ColorTextMappingModel
3+
@model AccumulationChartType.Pages.ColorTextMappingModel
4+
@{
5+
List<PieChartData> chartData = new List<PieChartData>
6+
{
7+
new PieChartData { xValue = "Chrome", yValue = 37, text = "37%", fill="#498fff"},
8+
new PieChartData { xValue = "UC Browser", yValue = 17, text = "17%", fill="#ffa060"},
9+
new PieChartData { xValue = "iPhone", yValue = 19, text = "19%", fill="#ff68b6"},
10+
new PieChartData { xValue = "Others", yValue = 4 , text = "4%", fill="#81e2a1"},
11+
};
12+
}
13+
14+
<ejs-accumulationchart id="container" title="Mobile Browser Statistics">
15+
<e-accumulationchart-legendsettings visible="false">
16+
</e-accumulationchart-legendsettings>
17+
<e-accumulation-series-collection>
18+
<e-accumulation-series dataSource="chartData" xName="xValue" yName="yValue" name="Browser"
19+
pointColorMapping="fill">
20+
<e-accumulationseries-datalabel name="text" visible="true">
21+
</e-accumulationseries-datalabel>
22+
</e-accumulation-series>
23+
</e-accumulation-series-collection>
24+
</ejs-accumulationchart>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace AccumulationChartType.Pages
5+
{
6+
public class ColorTextMappingModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
public class PieChartData
12+
{
13+
public string xValue;
14+
public double yValue;
15+
public string text;
16+
public string fill;
17+
}
18+
}
19+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@page
2+
@using static AccumulationChartType.Pages.CustomizationModel
3+
@model AccumulationChartType.Pages.CustomizationModel
4+
@{
5+
List<PieChartData> chartData = new List<PieChartData>
6+
{
7+
new PieChartData { xValue = "Chrome", yValue = 37 },
8+
new PieChartData { xValue = "UC Browser", yValue = 17 },
9+
new PieChartData { xValue = "iPhone", yValue = 19 },
10+
new PieChartData { xValue = "Others", yValue = 4 },
11+
new PieChartData { xValue = "Opera", yValue = 11 },
12+
new PieChartData { xValue = "Android", yValue = 12 },
13+
};
14+
}
15+
16+
<ejs-accumulationchart id="container" title="Mobile Browser Statistics" pointRender="pointRender">
17+
<e-accumulationchart-legendsettings visible="false">
18+
</e-accumulationchart-legendsettings>
19+
<e-accumulation-series-collection>
20+
<e-accumulation-series dataSource="chartData" xName="xValue" yName="yValue" name="Browser">
21+
</e-accumulation-series>
22+
</e-accumulation-series-collection>
23+
</ejs-accumulationchart>
24+
25+
<script>
26+
var pointRender = function (args) {
27+
if ((args.point.x).indexOf("iPhone") > -1) {
28+
args.fill = '#f4bc42';
29+
}
30+
else {
31+
args.fill = '#597cf9';
32+
}
33+
};
34+
</script>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace AccumulationChartType.Pages
5+
{
6+
public class CustomizationModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
public class PieChartData
12+
{
13+
public string xValue;
14+
public double yValue;
15+
}
16+
}
17+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@page
2+
@using static AccumulationChartType.Pages.DoughnutChartModel
3+
@model AccumulationChartType.Pages.DoughnutChartModel
4+
@{
5+
List<PieChartData> chartData = new List<PieChartData>
6+
{
7+
8+
new PieChartData { xValue = "Chrome", yValue = 37 },
9+
new PieChartData { xValue = "UC Browser", yValue = 17 },
10+
new PieChartData { xValue = "iPhone", yValue = 19 },
11+
new PieChartData { xValue = "Others", yValue = 4 },
12+
new PieChartData { xValue = "Opera", yValue = 11 },
13+
new PieChartData { xValue = "Android", yValue = 12 },
14+
};
15+
}
16+
17+
<ejs-accumulationchart id="container" title="Mobile Browser Statistics">
18+
<e-accumulationchart-legendsettings visible="false">
19+
</e-accumulationchart-legendsettings>
20+
<e-accumulation-series-collection>
21+
<e-accumulation-series dataSource="@chartData" xName="xValue" yName="yValue" name="Browser" innerRadius="40%">
22+
</e-accumulation-series>
23+
</e-accumulation-series-collection>
24+
</ejs-accumulationchart>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace AccumulationChartType.Pages
5+
{
6+
public class DoughnutChartModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
public class PieChartData
12+
{
13+
public string xValue;
14+
public double yValue;
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)