Skip to content

Commit 718c7e7

Browse files
Merge pull request #1 from SyncfusionExamples/Add_ParallelCoordinate_Chart_Sample
Attach the Parallel Coordinate chart KB sample
2 parents 09833f9 + b646dc3 commit 718c7e7

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

+9674
-2
lines changed
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
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>
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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="Flyout"
8+
Title="ParallelCoordinateChart">
9+
10+
<ShellContent
11+
Title="Home"
12+
ContentTemplate="{DataTemplate local:MainPage}"
13+
Route="MainPage" />
14+
15+
</Shell>
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+
}
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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:ParallelCoordinateChart"
6+
x:Class="ParallelCoordinateChart.MainPage">
7+
8+
<ContentPage.Content>
9+
<Border StrokeShape="RoundRectangle 10" Stroke="Black" Margin="5">
10+
<local:ParallelCoordinateChart Margin="10"/>
11+
</Border>
12+
</ContentPage.Content>
13+
14+
</ContentPage>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Syncfusion.Maui.Charts;
2+
3+
namespace ParallelCoordinateChart
4+
{
5+
public partial class MainPage : ContentPage
6+
{
7+
public MainPage()
8+
{
9+
InitializeComponent();
10+
}
11+
12+
}
13+
14+
}
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 ParallelCoordinateChart
5+
{
6+
public static class MauiProgram
7+
{
8+
public static MauiApp CreateMauiApp()
9+
{
10+
var builder = MauiApp.CreateBuilder();
11+
builder.ConfigureSyncfusionCore();
12+
builder
13+
.UseMauiApp<App>()
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 Model
10+
{
11+
public string? CarModel { get; set; }
12+
public double Horsepower { get; set; }
13+
public double Torque { get; set; }
14+
public double FuelEfficiency { get; set; }
15+
public double Price { get; set; }
16+
}
17+
}

0 commit comments

Comments
 (0)