Skip to content

Commit 0573c07

Browse files
Merge pull request #1 from SyncfusionExamples/SalesPerformanceAnalysis
Added Sales performance analysis demo
2 parents 47d6591 + 3fe00f9 commit 0573c07

File tree

145 files changed

+6281
-2
lines changed

Some content is hidden

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

145 files changed

+6281
-2
lines changed
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.14.36109.1 d17.14
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AISalesDashboard", "AISalesDashboard\AISalesDashboard.csproj", "{28692503-FCFA-4492-9AEF-C31EE5B81F22}"
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+
{28692503-FCFA-4492-9AEF-C31EE5B81F22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{28692503-FCFA-4492-9AEF-C31EE5B81F22}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{28692503-FCFA-4492-9AEF-C31EE5B81F22}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{28692503-FCFA-4492-9AEF-C31EE5B81F22}.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 = {6D39A084-0DE7-43AE-9AA6-AD85A5526AD0}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 250 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
6+
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
7+
<!-- <TargetFrameworks>$(TargetFrameworks);net9.0-tizen</TargetFrameworks> -->
8+
9+
<!-- Note for MacCatalyst:
10+
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
11+
When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
12+
The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
13+
either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
14+
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
15+
16+
<OutputType>Exe</OutputType>
17+
<RootNamespace>AISalesDashboard</RootNamespace>
18+
<UseMaui>true</UseMaui>
19+
<SingleProject>true</SingleProject>
20+
<ImplicitUsings>enable</ImplicitUsings>
21+
<Nullable>enable</Nullable>
22+
23+
<!-- Display name -->
24+
<ApplicationTitle>AISalesDashboard</ApplicationTitle>
25+
26+
<!-- App Identifier -->
27+
<ApplicationId>com.companyname.aisalesdashboard</ApplicationId>
28+
29+
<!-- Versions -->
30+
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
31+
<ApplicationVersion>1</ApplicationVersion>
32+
33+
<!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
34+
<WindowsPackageType>None</WindowsPackageType>
35+
36+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
37+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
38+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
39+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
40+
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
41+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
42+
</PropertyGroup>
43+
44+
<ItemGroup>
45+
<!-- App Icon -->
46+
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
47+
48+
<!-- Splash Screen -->
49+
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
50+
51+
<!-- Images -->
52+
<MauiImage Include="Resources\Images\*" />
53+
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
54+
55+
<!-- Custom Fonts -->
56+
<MauiFont Include="Resources\Fonts\*" />
57+
58+
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
59+
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
60+
</ItemGroup>
61+
62+
<ItemGroup>
63+
<Compile Remove="Resources\Fonts\MauiProgram.cs" />
64+
</ItemGroup>
65+
66+
<ItemGroup>
67+
<MauiAsset Remove="Resources\Raw\prediction.json" />
68+
</ItemGroup>
69+
70+
<ItemGroup>
71+
<None Remove="Resources\Images\NewProductImages\blackberry_bold.png" />
72+
<None Remove="Resources\Images\NewProductImages\bluetooth_speaker.png" />
73+
<None Remove="Resources\Images\NewProductImages\external_ssd.png" />
74+
<None Remove="Resources\Images\NewProductImages\gaming_console.png" />
75+
<None Remove="Resources\Images\NewProductImages\gaming_mouse.png" />
76+
<None Remove="Resources\Images\NewProductImages\googlenexus_5.png" />
77+
<None Remove="Resources\Images\NewProductImages\graphics_card.png" />
78+
<None Remove="Resources\Images\NewProductImages\htcone_m7.png" />
79+
<None Remove="Resources\Images\NewProductImages\huawei_ascend.png" />
80+
<None Remove="Resources\Images\NewProductImages\iphone_4.png" />
81+
<None Remove="Resources\Images\NewProductImages\iphone_5s.png" />
82+
<None Remove="Resources\Images\NewProductImages\laptop.png" />
83+
<None Remove="Resources\Images\NewProductImages\lg_g2.png" />
84+
<None Remove="Resources\Images\NewProductImages\mech_keyboard.png" />
85+
<None Remove="Resources\Images\NewProductImages\microphone.png" />
86+
<None Remove="Resources\Images\NewProductImages\monitor.png" />
87+
<None Remove="Resources\Images\NewProductImages\motorola_moto.png" />
88+
<None Remove="Resources\Images\NewProductImages\nokia_lumia.png" />
89+
<None Remove="Resources\Images\NewProductImages\power_bank.png" />
90+
<None Remove="Resources\Images\NewProductImages\router.png" />
91+
<None Remove="Resources\Images\NewProductImages\samsung.png" />
92+
<None Remove="Resources\Images\NewProductImages\samsung_galaxy_n4.png" />
93+
<None Remove="Resources\Images\NewProductImages\smartphone.png" />
94+
<None Remove="Resources\Images\NewProductImages\smartwatch.png" />
95+
<None Remove="Resources\Images\NewProductImages\smart_tv.png" />
96+
<None Remove="Resources\Images\NewProductImages\sonyxperia_z1.png" />
97+
<None Remove="Resources\Images\NewProductImages\tablet.png" />
98+
<None Remove="Resources\Images\NewProductImages\vr_headset.png" />
99+
<None Remove="Resources\Images\NewProductImages\webcam.png" />
100+
<None Remove="Resources\Images\NewProductImages\wireless_earbuds.png" />
101+
</ItemGroup>
102+
103+
<ItemGroup>
104+
<EmbeddedResource Include="Resources\Raw\prediction.json" />
105+
</ItemGroup>
106+
107+
<ItemGroup>
108+
<MauiImage Include="Resources\Images\NewProductImages\blackberry_bold.png" />
109+
<MauiImage Include="Resources\Images\NewProductImages\bluetooth_speaker.png" />
110+
<MauiImage Include="Resources\Images\NewProductImages\external_ssd.png" />
111+
<MauiImage Include="Resources\Images\NewProductImages\gaming_console.png" />
112+
<MauiImage Include="Resources\Images\NewProductImages\gaming_mouse.png" />
113+
<MauiImage Include="Resources\Images\NewProductImages\googlenexus_5.png" />
114+
<MauiImage Include="Resources\Images\NewProductImages\graphics_card.png" />
115+
<MauiImage Include="Resources\Images\NewProductImages\htcone_m7.png" />
116+
<MauiImage Include="Resources\Images\NewProductImages\huawei_ascend.png" />
117+
<MauiImage Include="Resources\Images\NewProductImages\iphone_4.png" />
118+
<MauiImage Include="Resources\Images\NewProductImages\iphone_5s.png" />
119+
<MauiImage Include="Resources\Images\NewProductImages\laptop.png" />
120+
<MauiImage Include="Resources\Images\NewProductImages\lg_g2.png" />
121+
<MauiImage Include="Resources\Images\NewProductImages\mech_keyboard.png" />
122+
<MauiImage Include="Resources\Images\NewProductImages\microphone.png" />
123+
<MauiImage Include="Resources\Images\NewProductImages\monitor.png" />
124+
<MauiImage Include="Resources\Images\NewProductImages\motorola_moto.png" />
125+
<MauiImage Include="Resources\Images\NewProductImages\nokia_lumia.png" />
126+
<MauiImage Include="Resources\Images\NewProductImages\power_bank.png" />
127+
<MauiImage Include="Resources\Images\NewProductImages\router.png" />
128+
<MauiImage Include="Resources\Images\NewProductImages\samsung.png" />
129+
<MauiImage Include="Resources\Images\NewProductImages\samsung_galaxy_n4.png" />
130+
<MauiImage Include="Resources\Images\NewProductImages\smartphone.png" />
131+
<MauiImage Include="Resources\Images\NewProductImages\smartwatch.png" />
132+
<MauiImage Include="Resources\Images\NewProductImages\smart_tv.png" />
133+
<MauiImage Include="Resources\Images\NewProductImages\sonyxperia_z1.png" />
134+
<MauiImage Include="Resources\Images\NewProductImages\tablet.png" />
135+
<MauiImage Include="Resources\Images\NewProductImages\vr_headset.png" />
136+
<MauiImage Include="Resources\Images\NewProductImages\webcam.png" />
137+
<MauiImage Include="Resources\Images\NewProductImages\wireless_earbuds.png" />
138+
</ItemGroup>
139+
140+
<ItemGroup>
141+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
142+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
143+
<PackageReference Include="Syncfusion.Maui.AIAssistView" Version="*" />
144+
<PackageReference Include="Syncfusion.Maui.Buttons" Version="*" />
145+
<PackageReference Include="Syncfusion.Maui.Charts" Version="*" />
146+
<PackageReference Include="Syncfusion.Maui.Chat" Version="*" />
147+
<PackageReference Include="Syncfusion.Maui.Core" Version="*" />
148+
<PackageReference Include="Syncfusion.Maui.DataGrid" Version="*" />
149+
<PackageReference Include="Syncfusion.Maui.DataGridExport" version="*" />
150+
<PackageReference Include="Syncfusion.Maui.Gauges" Version="*" />
151+
<PackageReference Include="Syncfusion.Maui.Inputs" Version="*" />
152+
<PackageReference Include="Syncfusion.Maui.Maps" Version="*" />
153+
<PackageReference Include="Syncfusion.Maui.NavigationDrawer" Version="*" />
154+
<PackageReference Include="Syncfusion.Maui.Picker" Version="*" />
155+
<PackageReference Include="Syncfusion.Maui.Popup" Version="*" />
156+
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
157+
<PackageReference Include="Azure.Identity" Version="1.13.2" />
158+
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.0.1-preview.1.24570.5" />
159+
<PackageReference Include="Syncfusion.Maui.TabView" Version="*" />
160+
<PackageReference Include="Syncfusion.XlsIO.NET" Version="*" />
161+
<PackageReference Include="Syncfusion.Maui.Data" Version="*" />
162+
<PackageReference Include="Syncfusion.Maui.PullToRefresh" Version="*" />
163+
<PackageReference Include="Syncfusion.Pdf.NET" Version="*" />
164+
</ItemGroup>
165+
166+
<ItemGroup>
167+
<MauiXaml Update="CustomViews\AIInsightsDetails.xaml">
168+
<Generator>MSBuild:Compile</Generator>
169+
</MauiXaml>
170+
<MauiXaml Update="CustomViews\AverageConfidence.xaml">
171+
<Generator>MSBuild:Compile</Generator>
172+
</MauiXaml>
173+
<MauiXaml Update="CustomViews\CustomBorder.xaml">
174+
<Generator>MSBuild:Compile</Generator>
175+
</MauiXaml>
176+
<MauiXaml Update="CustomViews\OrderList.xaml">
177+
<Generator>MSBuild:Compile</Generator>
178+
</MauiXaml>
179+
<MauiXaml Update="CustomViews\PredictionDetails.xaml">
180+
<Generator>MSBuild:Compile</Generator>
181+
</MauiXaml>
182+
<MauiXaml Update="CustomViews\PredictionPeriod.xaml">
183+
<Generator>MSBuild:Compile</Generator>
184+
</MauiXaml>
185+
<MauiXaml Update="CustomViews\PredictionRevenue.xaml">
186+
<Generator>MSBuild:Compile</Generator>
187+
</MauiXaml>
188+
<MauiXaml Update="CustomViews\ProductChart.xaml">
189+
<Generator>MSBuild:Compile</Generator>
190+
</MauiXaml>
191+
<MauiXaml Update="CustomViews\ProductList.xaml">
192+
<Generator>MSBuild:Compile</Generator>
193+
</MauiXaml>
194+
<MauiXaml Update="CustomViews\ProductSalesRegion.xaml">
195+
<Generator>MSBuild:Compile</Generator>
196+
</MauiXaml>
197+
<MauiXaml Update="CustomViews\ProfitMarginChart.xaml">
198+
<Generator>MSBuild:Compile</Generator>
199+
</MauiXaml>
200+
<MauiXaml Update="CustomViews\QuantityChart.xaml">
201+
<Generator>MSBuild:Compile</Generator>
202+
</MauiXaml>
203+
<MauiXaml Update="CustomViews\RevenueTrendChart.xaml">
204+
<Generator>MSBuild:Compile</Generator>
205+
</MauiXaml>
206+
<MauiXaml Update="CustomViews\SalesDataGrid.xaml">
207+
<Generator>MSBuild:Compile</Generator>
208+
</MauiXaml>
209+
<MauiXaml Update="MainView\AISalesDemo.xaml">
210+
<Generator>MSBuild:Compile</Generator>
211+
</MauiXaml>
212+
<MauiXaml Update="MobileViews\AndroidUI.xaml">
213+
<Generator>MSBuild:Compile</Generator>
214+
</MauiXaml>
215+
<MauiXaml Update="MobileViews\HomeAndroid.xaml">
216+
<Generator>MSBuild:Compile</Generator>
217+
</MauiXaml>
218+
<MauiXaml Update="MobileViews\OrderDetailsAndroid.xaml">
219+
<Generator>MSBuild:Compile</Generator>
220+
</MauiXaml>
221+
<MauiXaml Update="MobileViews\PredictionAndroid.xaml">
222+
<Generator>MSBuild:Compile</Generator>
223+
</MauiXaml>
224+
<MauiXaml Update="MobileViews\ProductDetailsAndroid.xaml">
225+
<Generator>MSBuild:Compile</Generator>
226+
</MauiXaml>
227+
<MauiXaml Update="Resources\Styles\SalesDashboardStyles.xaml">
228+
<Generator>MSBuild:Compile</Generator>
229+
</MauiXaml>
230+
<MauiXaml Update="SplashScreenView.xaml">
231+
<Generator>MSBuild:Compile</Generator>
232+
</MauiXaml>
233+
<MauiXaml Update="SystemViews\DesktopUI.xaml">
234+
<Generator>MSBuild:Compile</Generator>
235+
</MauiXaml>
236+
<MauiXaml Update="SystemViews\Home.xaml">
237+
<Generator>MSBuild:Compile</Generator>
238+
</MauiXaml>
239+
<MauiXaml Update="SystemViews\OrderDetails.xaml">
240+
<Generator>MSBuild:Compile</Generator>
241+
</MauiXaml>
242+
<MauiXaml Update="SystemViews\Prediction.xaml">
243+
<Generator>MSBuild:Compile</Generator>
244+
</MauiXaml>
245+
<MauiXaml Update="SystemViews\ProductDetails.xaml">
246+
<Generator>MSBuild:Compile</Generator>
247+
</MauiXaml>
248+
</ItemGroup>
249+
250+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
5+
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
6+
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
7+
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
8+
<DefaultDevice>pixel_7_-_api_35</DefaultDevice>
9+
</PropertyGroup>
10+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
11+
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
12+
</PropertyGroup>
13+
<ItemGroup>
14+
<None Update="App.xaml">
15+
<SubType>Designer</SubType>
16+
</None>
17+
<None Update="AppShell.xaml">
18+
<SubType>Designer</SubType>
19+
</None>
20+
<None Update="MainPage.xaml">
21+
<SubType>Designer</SubType>
22+
</None>
23+
<None Update="Platforms\Windows\App.xaml">
24+
<SubType>Designer</SubType>
25+
</None>
26+
<None Update="Platforms\Windows\Package.appxmanifest">
27+
<SubType>Designer</SubType>
28+
</None>
29+
<None Update="Resources\Styles\Colors.xaml">
30+
<SubType>Designer</SubType>
31+
</None>
32+
<None Update="Resources\Styles\Styles.xaml">
33+
<SubType>Designer</SubType>
34+
</None>
35+
</ItemGroup>
36+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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:AISalesDashboard"
5+
x:Class="AISalesDashboard.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 Source="Resources/Styles/SalesDashboardStyles.xaml"/>
12+
</ResourceDictionary.MergedDictionaries>
13+
</ResourceDictionary>
14+
</Application.Resources>
15+
</Application>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace AISalesDashboard
2+
{
3+
public partial class App : Application
4+
{
5+
public App()
6+
{
7+
InitializeComponent();
8+
}
9+
10+
protected override Window CreateWindow(IActivationState? activationState)
11+
{
12+
return new Window(new MainPage());
13+
}
14+
}
15+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<Shell
3+
x:Class="AISalesDashboard.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:AISalesDashboard"
7+
Title="AISalesDashboard">
8+
9+
</Shell>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace AISalesDashboard
2+
{
3+
public partial class AppShell : Shell
4+
{
5+
public AppShell()
6+
{
7+
InitializeComponent();
8+
}
9+
}
10+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
x:Class="AISalesDashboard.AIInsightsDetails">
5+
6+
<ScrollView HorizontalScrollBarVisibility="Always" VerticalScrollBarVisibility="Always" Margin="{OnPlatform WinUI='16,12,16,16', MacCatalyst='16,12,16,16'}">
7+
<VerticalStackLayout Spacing="10">
8+
<Label Text="AI Insights" FontSize="16" TextColor="#49454F"/>
9+
<Label Text="{Binding InsightsExplanation}" TextType="Html" TextColor="#1C1B1F"/>
10+
</VerticalStackLayout>
11+
</ScrollView>
12+
13+
</ContentView>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace AISalesDashboard;
2+
3+
public partial class AIInsightsDetails : ContentView
4+
{
5+
public AIInsightsDetails()
6+
{
7+
InitializeComponent();
8+
}
9+
}

0 commit comments

Comments
 (0)