Skip to content

Commit 6636aba

Browse files
Merge pull request #1 from SyncfusionExamples/Parallel-Coordinate-chart-blog-sample
Update Parallel Coordinate Chart blog sample
2 parents 69059c7 + 9d3c0ca commit 6636aba

Some content is hidden

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

44 files changed

+1611
-2
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.12.35506.116 d17.12
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParallelCoordinateChart", "ParallelCoordinateChart\ParallelCoordinateChart.csproj", "{23B7249D-6002-4D66-9EF3-A43C8319864A}"
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+
{23B7249D-6002-4D66-9EF3-A43C8319864A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{23B7249D-6002-4D66-9EF3-A43C8319864A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{23B7249D-6002-4D66-9EF3-A43C8319864A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{23B7249D-6002-4D66-9EF3-A43C8319864A}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
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:ParallelCoordinateChart"
5+
x:Class="ParallelCoordinateChart.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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace ParallelCoordinateChart
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 AppShell());
13+
}
14+
}
15+
}
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="ParallelCoordinateChart.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:ParallelCoordinateChart"
7+
Shell.FlyoutBehavior="Disabled"
8+
Title="ParallelCoordinateChart">
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 ParallelCoordinateChart
2+
{
3+
public partial class AppShell : Shell
4+
{
5+
public AppShell()
6+
{
7+
InitializeComponent();
8+
}
9+
}
10+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace ParallelCoordinateChart
8+
{
9+
public class ChartModel
10+
{
11+
private List<object> variables;
12+
13+
public List<object> Variable
14+
{
15+
get => variables;
16+
set => variables = value;
17+
}
18+
19+
public ChartModel(List<object> values)
20+
{
21+
variables = values;
22+
}
23+
}
24+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.Toolkit;assembly=Syncfusion.Maui.Toolkit"
5+
xmlns:local="clr-namespace:ParallelCoordinateChart"
6+
x:Class="ParallelCoordinateChart.MainPage">
7+
8+
<ContentPage.Content>
9+
<Border StrokeThickness="4" Margin="10" Stroke="Gray">
10+
<Border.StrokeShape>
11+
<RoundRectangle Fill="Black" CornerRadius="10" />
12+
</Border.StrokeShape>
13+
<local:ParallelCoordinateChart Margin="5,10,0,10" >
14+
<local:ParallelCoordinateChart.Title>
15+
<Grid>
16+
<Grid.RowDefinitions>
17+
<RowDefinition Height="{OnPlatform Android=68,Default=80,iOS=68}"/>
18+
</Grid.RowDefinitions>
19+
<Grid.ColumnDefinitions>
20+
<ColumnDefinition Width="55"/>
21+
<ColumnDefinition Width="Auto"/>
22+
</Grid.ColumnDefinitions>
23+
<Image Grid.Column="0"
24+
Grid.RowSpan="2"
25+
Source="world.png"
26+
Margin="{OnPlatform Default='0,-25,0,0', iOS='0,-15,0,0', Android='0,-15,0,0'}"
27+
HeightRequest="70"
28+
WidthRequest="50"/>
29+
<StackLayout Grid.Column="1"
30+
Grid.Row="0"
31+
Margin="7,7,0,0">
32+
<Label Text="Trends in Flight Operations and Punctuality (1995-2023)"
33+
FontSize="{OnPlatform Android=12,Default=16,iOS=12}"
34+
FontAttributes="Bold"
35+
FontFamily="centurygothic"
36+
TextColor="Black"/>
37+
<Label Text="This chart visualizes changes in flight operations, on-time arrivals, delays, cancellations, and diversions from 1995 to 2023."
38+
FontSize="{OnPlatform Android=10,Default=12,iOS=10}"
39+
FontFamily="centurygothic"
40+
TextColor="Black"
41+
Margin="0,2,0,0"/>
42+
</StackLayout>
43+
</Grid>
44+
</local:ParallelCoordinateChart.Title>
45+
</local:ParallelCoordinateChart>
46+
</Border>
47+
</ContentPage.Content>
48+
49+
</ContentPage>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Syncfusion.Maui.Toolkit;
2+
3+
namespace ParallelCoordinateChart
4+
{
5+
public partial class MainPage : ContentPage
6+
{
7+
public MainPage()
8+
{
9+
InitializeComponent();
10+
}
11+
12+
}
13+
14+
}
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.Toolkit.Hosting;
3+
4+
namespace ParallelCoordinateChart
5+
{
6+
public static class MauiProgram
7+
{
8+
public static MauiApp CreateMauiApp()
9+
{
10+
var builder = MauiApp.CreateBuilder();
11+
builder
12+
.UseMauiApp<App>()
13+
.ConfigureSyncfusionToolkit()
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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace ParallelCoordinateChart
8+
{
9+
public class FlightDataModel
10+
{
11+
public string? Year { get; set; }
12+
public double Operations { get; set; }
13+
public double PercentOnTimeArrivals { get; set; }
14+
public double PercentLateArrivals { get; set; }
15+
public double PercentLateDepartures { get; set; }
16+
public double PercentCancelled { get; set; }
17+
public double PercentDiverted { get; set; }
18+
}
19+
}

0 commit comments

Comments
 (0)