Skip to content

Commit 3285df1

Browse files
author
Surya Karan Raja
authored
Add files via upload
1 parent e1ff6bd commit 3285df1

39 files changed

+1151
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34321.82
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StackedColumnGrouping", "StackedColumnGrouping\StackedColumnGrouping.csproj", "{00D8029F-7B80-480C-BC96-E0DF0B933F72}"
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+
{00D8029F-7B80-480C-BC96-E0DF0B933F72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{00D8029F-7B80-480C-BC96-E0DF0B933F72}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{00D8029F-7B80-480C-BC96-E0DF0B933F72}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17+
{00D8029F-7B80-480C-BC96-E0DF0B933F72}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{00D8029F-7B80-480C-BC96-E0DF0B933F72}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{00D8029F-7B80-480C-BC96-E0DF0B933F72}.Release|Any CPU.Deploy.0 = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(SolutionProperties) = preSolution
22+
HideSolutionNode = FALSE
23+
EndGlobalSection
24+
GlobalSection(ExtensibilityGlobals) = postSolution
25+
SolutionGuid = {56707A11-869E-49E9-84C2-5C14E611480B}
26+
EndGlobalSection
27+
EndGlobal
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version = "1.0" encoding = "UTF-8" ?>
2+
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
xmlns:local="clr-namespace:StackedColumnGrouping"
5+
x:Class="StackedColumnGrouping.App">
6+
<Application.Resources>
7+
<ResourceDictionary>
8+
<ResourceDictionary.MergedDictionaries>
9+
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
10+
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
11+
</ResourceDictionary.MergedDictionaries>
12+
</ResourceDictionary>
13+
</Application.Resources>
14+
</Application>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace StackedColumnGrouping
2+
{
3+
public partial class App : Application
4+
{
5+
public App()
6+
{
7+
InitializeComponent();
8+
9+
MainPage = new AppShell();
10+
}
11+
}
12+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<Shell
3+
x:Class="StackedColumnGrouping.AppShell"
4+
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6+
xmlns:local="clr-namespace:StackedColumnGrouping"
7+
Shell.FlyoutBehavior="Disabled"
8+
Title="StackedColumnGrouping">
9+
10+
<ShellContent
11+
ContentTemplate="{DataTemplate local:MainPage}"
12+
Route="MainPage" />
13+
14+
</Shell>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace StackedColumnGrouping
2+
{
3+
public partial class AppShell : Shell
4+
{
5+
public AppShell()
6+
{
7+
InitializeComponent();
8+
}
9+
}
10+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts"
5+
xmlns:local="clr-namespace:StackedColumnGrouping"
6+
x:Class="StackedColumnGrouping.MainPage">
7+
<ContentPage.BindingContext>
8+
<local:ViewModel></local:ViewModel>
9+
</ContentPage.BindingContext>
10+
11+
<chart:SfCartesianChart >
12+
<chart:SfCartesianChart.XAxes>
13+
<chart:CategoryAxis ShowMajorGridLines="False"></chart:CategoryAxis>
14+
</chart:SfCartesianChart.XAxes>
15+
16+
<chart:SfCartesianChart.YAxes>
17+
<chart:NumericalAxis Interval="10" ShowMajorGridLines="False"></chart:NumericalAxis>
18+
</chart:SfCartesianChart.YAxes>
19+
20+
<chart:StackingColumnSeries ItemsSource="{Binding Data1}"
21+
XBindingPath="Month"
22+
YBindingPath="Value"
23+
Fill="#008FFB"
24+
Label="Team A"
25+
GroupingLabel="GroupOne"
26+
LegendIcon="Rectangle">
27+
</chart:StackingColumnSeries>
28+
29+
<chart:StackingColumnSeries ItemsSource="{Binding Data2}"
30+
XBindingPath="Month"
31+
YBindingPath="Value"
32+
Fill="#40ACFF"
33+
Label="Team B"
34+
GroupingLabel="GroupOne"
35+
LegendIcon="Rectangle">
36+
</chart:StackingColumnSeries>
37+
38+
<chart:StackingColumnSeries ItemsSource="{Binding Data3}"
39+
XBindingPath="Month"
40+
YBindingPath="Value"
41+
Fill="#E3465D"
42+
Label="Team C"
43+
GroupingLabel="GroupTwo"
44+
LegendIcon="Rectangle">
45+
</chart:StackingColumnSeries>
46+
47+
<chart:StackingColumnSeries ItemsSource="{Binding Data4}"
48+
XBindingPath="Month"
49+
YBindingPath="Value"
50+
Label="Team D"
51+
Fill="#F25D72"
52+
GroupingLabel="GroupTwo"
53+
LegendIcon="Rectangle">
54+
</chart:StackingColumnSeries>
55+
56+
<chart:SfCartesianChart.Legend>
57+
<chart:ChartLegend ></chart:ChartLegend>
58+
</chart:SfCartesianChart.Legend>
59+
</chart:SfCartesianChart>
60+
61+
</ContentPage>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Syncfusion.Maui.Charts;
2+
3+
namespace StackedColumnGrouping
4+
{
5+
public partial class MainPage : ContentPage
6+
{
7+
public MainPage()
8+
{
9+
InitializeComponent();
10+
11+
}
12+
}
13+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using Microsoft.Extensions.Logging;
2+
using Syncfusion.Maui.Core.Hosting;
3+
4+
namespace StackedColumnGrouping
5+
{
6+
public static class MauiProgram
7+
{
8+
public static MauiApp CreateMauiApp()
9+
{
10+
var builder = MauiApp.CreateBuilder();
11+
builder
12+
.UseMauiApp<App>()
13+
.ConfigureSyncfusionCore()
14+
.ConfigureFonts(fonts =>
15+
{
16+
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
17+
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
18+
});
19+
20+
#if DEBUG
21+
builder.Logging.AddDebug();
22+
#endif
23+
24+
return builder.Build();
25+
}
26+
}
27+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace StackedColumnGrouping
8+
{
9+
public class Model()
10+
{
11+
public string? Month { get; set; }
12+
public double Value { get; set; }
13+
}
14+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
4+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
</manifest>

0 commit comments

Comments
 (0)