Skip to content

Commit 6105e31

Browse files
committed
Prepared UG Grouping, EmptyPoints, Annotations samples for AccumulationChart control
1 parent fd6e5a0 commit 6105e31

File tree

93 files changed

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

93 files changed

+75277
-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>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.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.9.34728.123
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GroupPointAnnotationSample", "GroupPointAnnotationSample.csproj", "{C91CF669-73EA-4918-9F01-72220E4F0FB5}"
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+
{C91CF669-73EA-4918-9F01-72220E4F0FB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{C91CF669-73EA-4918-9F01-72220E4F0FB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{C91CF669-73EA-4918-9F01-72220E4F0FB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{C91CF669-73EA-4918-9F01-72220E4F0FB5}.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 = {D41F01E3-6D3A-41B8-8CD6-4EAB75BA9B95}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@page
2+
@using static GroupPointAnnotationSample.Pages.AlignmentModel
3+
@model GroupPointAnnotationSample.Pages.AlignmentModel
4+
@{
5+
List<PieChartData> chartData = new List<PieChartData>
6+
{
7+
new PieChartData { x = "Chrome", y = 37 },
8+
new PieChartData { x = "UC Browser", y = 17 },
9+
new PieChartData { x = "iPhone", y = 19 },
10+
new PieChartData { x = "Others", y = 4 },
11+
new PieChartData { x = "Opera", y = 11 },
12+
new PieChartData { x = "Android", y = 12 },
13+
};
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="x" yName="y" name="Browser">
22+
</e-accumulation-series>
23+
</e-accumulation-series-collection>
24+
<e-accumulationchart-accumulationannotations>
25+
<e-accumulationchart-accumulationannotation Content="<div style='border: 1px solid black;background-color:red;padding: 5px 5px 5px 5px'>Others</div>" X="iPhone" Y=19 CoordinateUnits='@Syncfusion.EJ2.Charts.Units.Pixel' region='@Syncfusion.EJ2.Charts.Regions.Chart' verticalAlignment="Top" horizontalAlignment="Near"></e-accumulationchart-accumulationannotation>
26+
</e-accumulationchart-accumulationannotations>
27+
</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 GroupPointAnnotationSample.Pages
5+
{
6+
public class AlignmentModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
public class PieChartData
12+
{
13+
public string x;
14+
public double y;
15+
}
16+
}
17+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@page
2+
@using static GroupPointAnnotationSample.Pages.AnnotationModel
3+
@model GroupPointAnnotationSample.Pages.AnnotationModel
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">
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+
<e-accumulationchart-accumulationannotations>
24+
<e-accumulationchart-accumulationannotation Content="<div style='border: 1px solid black;background-color:red;padding: 5px 5px 5px 5px'>Others</div>" X="iPhone" Y=19 CoordinateUnits='@Syncfusion.EJ2.Charts.Units.Point' region='@Syncfusion.EJ2.Charts.Regions.Series'></e-accumulationchart-accumulationannotation>
25+
</e-accumulationchart-accumulationannotations>
26+
</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 GroupPointAnnotationSample.Pages
5+
{
6+
public class AnnotationModel : 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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@page
2+
@using Syncfusion.EJ2.Charts
3+
@using static GroupPointAnnotationSample.Pages.BrokenSliceModel
4+
@model GroupPointAnnotationSample.Pages.BrokenSliceModel
5+
@{
6+
List<GroupingChartData> chartData = new List<GroupingChartData>
7+
{
8+
new GroupingChartData { xValue = "China",yValue = 26, text = "China: 26" },
9+
new GroupingChartData { xValue = "Russia", yValue = 19, text = "Russia: 19" },
10+
new GroupingChartData { xValue = "Germany", yValue = 17, text = "Germany: 17" },
11+
new GroupingChartData { xValue = "Japan", yValue = 12, text = "Japan: 12" },
12+
new GroupingChartData { xValue = "France", yValue = 10, text = "France: 10" },
13+
new GroupingChartData { xValue = "South Korea", yValue = 9, text = "South Korea: 9" },
14+
new GroupingChartData { xValue = "Great Britain", yValue = 27, text = "Great Britain: 27" },
15+
new GroupingChartData { xValue = "Italy", yValue = 8, text = "Italy: 8" },
16+
new GroupingChartData { xValue = "Australia", yValue = 8, text = "Australia: 8" },
17+
new GroupingChartData { xValue = "Netherlands", yValue = 8, text = "Netherlands: 8" },
18+
new GroupingChartData { xValue = "Hungary", yValue = 8, text = "Hungary: 8" },
19+
new GroupingChartData { xValue = "Brazil", yValue = 7, text = "Brazil: 7" },
20+
new GroupingChartData { xValue = "Spain", yValue = 7, text = "Spain: 7" },
21+
new GroupingChartData { xValue = "Kenya", yValue = 6, text = "Kenya: 6" }
22+
};
23+
}
24+
25+
<ejs-accumulationchart id="container" title="RIO Olympics Gold" enableAnimation="true" enableSmartLabels="true">
26+
<e-accumulation-series-collection>
27+
<e-accumulation-series explode="true" dataSource="chartData" xName="xValue" yName="yValue" name="RIO" groupTo="9" groupMode="Point">
28+
<e-accumulationseries-datalabel visible="true" position="Outside">
29+
<e-connectorstyle type="Line" length="5%"></e-connectorstyle>
30+
<e-font size="14px"></e-font>
31+
</e-accumulationseries-datalabel>
32+
</e-accumulation-series>
33+
</e-accumulation-series-collection>
34+
</ejs-accumulationchart>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace GroupPointAnnotationSample.Pages
5+
{
6+
public class BrokenSliceModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
public class GroupingChartData
12+
{
13+
public string xValue;
14+
public double yValue;
15+
public string text;
16+
}
17+
}
18+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@page
2+
@using static GroupPointAnnotationSample.Pages.CoOrdinatesModel
3+
@model GroupPointAnnotationSample.Pages.CoOrdinatesModel
4+
@{
5+
List<PieChartData> chartData = new List<PieChartData>
6+
{
7+
new PieChartData { x = "Chrome", y = 37 },
8+
new PieChartData { x = "UC Browser", y = 17 },
9+
new PieChartData { x = "iPhone", y = 19 },
10+
new PieChartData { x = "Others", y = 4 },
11+
new PieChartData { x = "Opera", y = 11 },
12+
new PieChartData { x = "Android", y = 12 },
13+
};
14+
}
15+
16+
<ejs-accumulationchart id="container" title="Mobile Browser Statistics">
17+
<e-accumulationchart-legendsettings visible="false">
18+
</e-accumulationchart-legendsettings>
19+
<e-accumulation-series-collection>
20+
<e-accumulation-series dataSource="chartData" xName="x" yName="y" name="Browser">
21+
</e-accumulation-series>
22+
</e-accumulation-series-collection>
23+
<e-accumulationchart-accumulationannotations>
24+
<e-accumulationchart-accumulationannotation Content="<div style='border: 1px solid black;background-color:red;padding: 5px 5px 5px 5px'>Others</div>" X="iPhone" Y=19 CoordinateUnits='@Syncfusion.EJ2.Charts.Units.Pixel' region='@Syncfusion.EJ2.Charts.Regions.Chart'></e-accumulationchart-accumulationannotation>
25+
</e-accumulationchart-accumulationannotations>
26+
</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 GroupPointAnnotationSample.Pages
5+
{
6+
public class CoOrdinatesModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
public class PieChartData
12+
{
13+
public string x;
14+
public double y;
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)