diff --git a/CartesianChart/GettingStarted/GettingStarted/MainPage.xaml b/CartesianChart/GettingStarted/GettingStarted/MainPage.xaml index d5d4030..7771b1a 100644 --- a/CartesianChart/GettingStarted/GettingStarted/MainPage.xaml +++ b/CartesianChart/GettingStarted/GettingStarted/MainPage.xaml @@ -6,7 +6,7 @@ x:Class="GettingStarted.MainPage"> - + diff --git a/CartesianChart/GettingStarted/GettingStarted/Model/Person.cs b/CartesianChart/GettingStarted/GettingStarted/Model/PersonModel.cs similarity index 81% rename from CartesianChart/GettingStarted/GettingStarted/Model/Person.cs rename to CartesianChart/GettingStarted/GettingStarted/Model/PersonModel.cs index 95176cb..d50ec46 100644 --- a/CartesianChart/GettingStarted/GettingStarted/Model/Person.cs +++ b/CartesianChart/GettingStarted/GettingStarted/Model/PersonModel.cs @@ -1,6 +1,6 @@ namespace GettingStarted { - public class Person + public class PersonModel { public string? Name { get; set; } public double Height { get; set; } diff --git a/CartesianChart/GettingStarted/GettingStarted/ViewModel/PersonViewModel.cs b/CartesianChart/GettingStarted/GettingStarted/ViewModel/PersonViewModel.cs new file mode 100644 index 0000000..d3e8db8 --- /dev/null +++ b/CartesianChart/GettingStarted/GettingStarted/ViewModel/PersonViewModel.cs @@ -0,0 +1,18 @@ +namespace GettingStarted +{ + public class PersonViewModel + { + public List Data { get; set; } + public PersonViewModel() + { + Data = new List() + { + new PersonModel { Name = "David", Height = 170 }, + new PersonModel { Name = "Michael", Height = 96 }, + new PersonModel { Name = "Steve", Height = 65 }, + new PersonModel { Name = "Joel", Height = 182 }, + new PersonModel { Name = "Bob", Height = 134 } + }; + } + } +} \ No newline at end of file diff --git a/CartesianChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs b/CartesianChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs deleted file mode 100644 index aad2ded..0000000 --- a/CartesianChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace GettingStarted -{ - public class ViewModel - { - public List Data { get; set; } - public ViewModel() - { - Data = new List() - { - new Person { Name = "David", Height = 170 }, - new Person { Name = "Michael", Height = 96 }, - new Person { Name = "Steve", Height = 65 }, - new Person { Name = "Joel", Height = 182 }, - new Person { Name = "Bob", Height = 134 } - }; - } - } -} \ No newline at end of file diff --git a/CircularChart/GettingStarted/GettingStarted/MainPage.xaml b/CircularChart/GettingStarted/GettingStarted/MainPage.xaml index f1109b1..ebff5c3 100644 --- a/CircularChart/GettingStarted/GettingStarted/MainPage.xaml +++ b/CircularChart/GettingStarted/GettingStarted/MainPage.xaml @@ -11,7 +11,7 @@ - + diff --git a/CircularChart/GettingStarted/GettingStarted/Model/Sales.cs b/CircularChart/GettingStarted/GettingStarted/Model/SalesModel.cs similarity index 82% rename from CircularChart/GettingStarted/GettingStarted/Model/Sales.cs rename to CircularChart/GettingStarted/GettingStarted/Model/SalesModel.cs index acaf2d9..17e8947 100644 --- a/CircularChart/GettingStarted/GettingStarted/Model/Sales.cs +++ b/CircularChart/GettingStarted/GettingStarted/Model/SalesModel.cs @@ -1,6 +1,6 @@ namespace GettingStarted { - public class Sales + public class SalesModel { public string? Product { get; set; } public double SalesRate { get; set; } diff --git a/CircularChart/GettingStarted/GettingStarted/ViewModel/SalesViewModel.cs b/CircularChart/GettingStarted/GettingStarted/ViewModel/SalesViewModel.cs new file mode 100644 index 0000000..a203375 --- /dev/null +++ b/CircularChart/GettingStarted/GettingStarted/ViewModel/SalesViewModel.cs @@ -0,0 +1,19 @@ +namespace GettingStarted +{ + public class SalesViewModel + { + public List Data { get; set; } + + public SalesViewModel() + { + Data = new List() + { + new SalesModel(){Product = "iPad", SalesRate = 70}, + new SalesModel(){Product = "iPhone", SalesRate = 65}, + new SalesModel(){Product = "MacBook", SalesRate = 60}, + new SalesModel(){Product = "Mac", SalesRate = 55}, + new SalesModel(){Product = "Others", SalesRate = 50}, + }; + } + } +} \ No newline at end of file diff --git a/CircularChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs b/CircularChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs deleted file mode 100644 index 9e41895..0000000 --- a/CircularChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace GettingStarted -{ - public class ViewModel - { - public List Data { get; set; } - - public ViewModel() - { - Data = new List() - { - new Sales(){Product = "iPad", SalesRate = 70}, - new Sales(){Product = "iPhone", SalesRate = 65}, - new Sales(){Product = "MacBook", SalesRate = 60}, - new Sales(){Product = "Mac", SalesRate = 55}, - new Sales(){Product = "Others", SalesRate = 50}, - }; - } - } -} \ No newline at end of file diff --git a/FunnelChart/GettingStarted/GettingStarted/MainPage.xaml b/FunnelChart/GettingStarted/GettingStarted/MainPage.xaml index e854e0d..f65f445 100644 --- a/FunnelChart/GettingStarted/GettingStarted/MainPage.xaml +++ b/FunnelChart/GettingStarted/GettingStarted/MainPage.xaml @@ -16,7 +16,7 @@ - + diff --git a/FunnelChart/GettingStarted/GettingStarted/Model/Admission.cs b/FunnelChart/GettingStarted/GettingStarted/Model/AdmissionModel.cs similarity index 80% rename from FunnelChart/GettingStarted/GettingStarted/Model/Admission.cs rename to FunnelChart/GettingStarted/GettingStarted/Model/AdmissionModel.cs index eb29cc2..ae47ff2 100644 --- a/FunnelChart/GettingStarted/GettingStarted/Model/Admission.cs +++ b/FunnelChart/GettingStarted/GettingStarted/Model/AdmissionModel.cs @@ -1,6 +1,6 @@ namespace GettingStarted { - public class Admission + public class AdmissionModel { public string? XValue { get; set; } public double YValue { get; set; } diff --git a/FunnelChart/GettingStarted/GettingStarted/ViewModel/AdmissionViewModel.cs b/FunnelChart/GettingStarted/GettingStarted/ViewModel/AdmissionViewModel.cs new file mode 100644 index 0000000..192ab78 --- /dev/null +++ b/FunnelChart/GettingStarted/GettingStarted/ViewModel/AdmissionViewModel.cs @@ -0,0 +1,19 @@ +namespace GettingStarted +{ + public class AdmissionViewModel + { + public List Data { get; set; } + + public AdmissionViewModel() + { + Data = new List() + { + new AdmissionModel() {XValue = "Enrolled", YValue=175}, + new AdmissionModel() {XValue = "Admits", YValue=190}, + new AdmissionModel() {XValue = "Applicants", YValue=245}, + new AdmissionModel() {XValue = "Inquiries ", YValue=290}, + new AdmissionModel() {XValue = "Prospects ", YValue=320}, + }; + } + } +} \ No newline at end of file diff --git a/FunnelChart/GettingStarted/GettingStarted/ViewModel/ChartViewModel.cs b/FunnelChart/GettingStarted/GettingStarted/ViewModel/ChartViewModel.cs deleted file mode 100644 index faa6628..0000000 --- a/FunnelChart/GettingStarted/GettingStarted/ViewModel/ChartViewModel.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace GettingStarted -{ - public class ChartViewModel - { - public List Data { get; set; } - - public ChartViewModel() - { - Data = new List() - { - new Admission() {XValue = "Enrolled", YValue=175}, - new Admission() {XValue = "Admits", YValue=190}, - new Admission() {XValue = "Applicants", YValue=245}, - new Admission() {XValue = "Inquiries ", YValue=290}, - new Admission() {XValue = "Prospects ", YValue=320}, - }; - } - } -} \ No newline at end of file diff --git a/PolarChart/GettingStarted/GettingStarted/MainPage.xaml b/PolarChart/GettingStarted/GettingStarted/MainPage.xaml index b032e3e..ba4f5f0 100644 --- a/PolarChart/GettingStarted/GettingStarted/MainPage.xaml +++ b/PolarChart/GettingStarted/GettingStarted/MainPage.xaml @@ -6,7 +6,7 @@ x:Class="GettingStarted.MainPage"> - + diff --git a/PolarChart/GettingStarted/GettingStarted/Model/Model.cs b/PolarChart/GettingStarted/GettingStarted/Model/PlantModel.cs similarity index 88% rename from PolarChart/GettingStarted/GettingStarted/Model/Model.cs rename to PolarChart/GettingStarted/GettingStarted/Model/PlantModel.cs index f56ef0b..ccb6790 100644 --- a/PolarChart/GettingStarted/GettingStarted/Model/Model.cs +++ b/PolarChart/GettingStarted/GettingStarted/Model/PlantModel.cs @@ -1,6 +1,6 @@ namespace GettingStarted { - public class Model + public class PlantModel { public string? Direction { get; set; } public double Tree { get; set; } diff --git a/PolarChart/GettingStarted/GettingStarted/ViewModel/PlantViewModel.cs b/PolarChart/GettingStarted/GettingStarted/ViewModel/PlantViewModel.cs new file mode 100644 index 0000000..77a1aff --- /dev/null +++ b/PolarChart/GettingStarted/GettingStarted/ViewModel/PlantViewModel.cs @@ -0,0 +1,23 @@ +using System.Collections.ObjectModel; + +namespace GettingStarted +{ + public class PlantViewModel + { + public ObservableCollection PlantDetails { get; set; } + public PlantViewModel() + { + PlantDetails = new ObservableCollection() + { + new PlantModel(){ Direction = "North", Tree = 80, Flower = 42, Weed = 63}, + new PlantModel(){ Direction = "NorthEast", Tree = 85, Flower = 40, Weed = 70}, + new PlantModel(){ Direction = "East", Tree = 78 , Flower = 47, Weed = 65}, + new PlantModel(){ Direction = "SouthEast", Tree = 90 , Flower = 40, Weed = 70}, + new PlantModel(){ Direction = "South", Tree = 78 , Flower = 27, Weed = 47}, + new PlantModel(){ Direction = "SouthWest", Tree = 83 , Flower = 45, Weed = 65}, + new PlantModel(){ Direction = "West", Tree = 79 , Flower = 40, Weed = 58}, + new PlantModel(){ Direction = "NorthWest", Tree = 88 , Flower = 38, Weed = 73} + }; + } + } +} \ No newline at end of file diff --git a/PolarChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs b/PolarChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs deleted file mode 100644 index b90d0e3..0000000 --- a/PolarChart/GettingStarted/GettingStarted/ViewModel/ViewModel.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Collections.ObjectModel; - -namespace GettingStarted -{ - public class ViewModel - { - public ObservableCollection PlantDetails { get; set; } - public ViewModel() - { - PlantDetails = new ObservableCollection() - { - new Model(){ Direction = "North", Tree = 80, Flower = 42, Weed = 63}, - new Model(){ Direction = "NorthEast", Tree = 85, Flower = 40, Weed = 70}, - new Model(){ Direction = "East", Tree = 78 , Flower = 47, Weed = 65}, - new Model(){ Direction = "SouthEast", Tree = 90 , Flower = 40, Weed = 70}, - new Model(){ Direction = "South", Tree = 78 , Flower = 27, Weed = 47}, - new Model(){ Direction = "SouthWest", Tree = 83 , Flower = 45, Weed = 65}, - new Model(){ Direction = "West", Tree = 79 , Flower = 40, Weed = 58}, - new Model(){ Direction = "NorthWest", Tree = 88 , Flower = 38, Weed = 73} - }; - } - } -} \ No newline at end of file diff --git a/PyramidChart/GettingStarted/GettingStarted/MainPage.xaml b/PyramidChart/GettingStarted/GettingStarted/MainPage.xaml index c77540f..0d49ff3 100644 --- a/PyramidChart/GettingStarted/GettingStarted/MainPage.xaml +++ b/PyramidChart/GettingStarted/GettingStarted/MainPage.xaml @@ -16,7 +16,7 @@ - + diff --git a/PyramidChart/GettingStarted/GettingStarted/Model/Stage.cs b/PyramidChart/GettingStarted/GettingStarted/Model/StageModel.cs similarity index 81% rename from PyramidChart/GettingStarted/GettingStarted/Model/Stage.cs rename to PyramidChart/GettingStarted/GettingStarted/Model/StageModel.cs index dda7e3b..f91f81e 100644 --- a/PyramidChart/GettingStarted/GettingStarted/Model/Stage.cs +++ b/PyramidChart/GettingStarted/GettingStarted/Model/StageModel.cs @@ -1,6 +1,6 @@ namespace GettingStarted { - public class Stage + public class StageModel { public string? Name { get; set; } public double Value { get; set; } diff --git a/PyramidChart/GettingStarted/GettingStarted/ViewModel/ChartViewModel.cs b/PyramidChart/GettingStarted/GettingStarted/ViewModel/ChartViewModel.cs deleted file mode 100644 index e342aa1..0000000 --- a/PyramidChart/GettingStarted/GettingStarted/ViewModel/ChartViewModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace GettingStarted -{ - public class ChartViewModel - { - public List Data { get; set; } - - public ChartViewModel() - { - Data = new List() - { - new Stage(){Name = "Stage A", Value=12}, - new Stage(){Name = "Stage B", Value=21}, - new Stage(){Name = "Stage C", Value=29}, - new Stage(){Name = "Stage D", Value=37}, - }; - } - } -} \ No newline at end of file diff --git a/PyramidChart/GettingStarted/GettingStarted/ViewModel/StageViewModel.cs b/PyramidChart/GettingStarted/GettingStarted/ViewModel/StageViewModel.cs new file mode 100644 index 0000000..9a64283 --- /dev/null +++ b/PyramidChart/GettingStarted/GettingStarted/ViewModel/StageViewModel.cs @@ -0,0 +1,18 @@ +namespace GettingStarted +{ + public class StageViewModel + { + public List Data { get; set; } + + public StageViewModel() + { + Data = new List() + { + new StageModel(){Name = "Stage A", Value=12}, + new StageModel(){Name = "Stage B", Value=21}, + new StageModel(){Name = "Stage C", Value=29}, + new StageModel(){Name = "Stage D", Value=37}, + }; + } + } +} \ No newline at end of file