-
Notifications
You must be signed in to change notification settings - Fork 201
/
Copy pathStackedColumnSeriesViewModel.cs
55 lines (50 loc) · 2.07 KB
/
StackedColumnSeriesViewModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#region Copyright Syncfusion® Inc. 2001-2025.
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using System;
using System.Collections.ObjectModel;
namespace SampleBrowser.SfChart
{
public class StackedColumnSeriesViewModel
{
public ObservableCollection<ChartDataModel> StackedColumnData1 { get; set; }
public ObservableCollection<ChartDataModel> StackedColumnData2 { get; set; }
public ObservableCollection<ChartDataModel> StackedColumnData3 { get; set; }
public ObservableCollection<ChartDataModel> StackedColumnData4 { get; set; }
public StackedColumnSeriesViewModel()
{
StackedColumnData1 = new ObservableCollection<ChartDataModel>
{
new ChartDataModel("2014", 111.1),
new ChartDataModel("2015", 127.3),
new ChartDataModel("2016", 143.4),
new ChartDataModel("2017", 159.9)
};
StackedColumnData2 = new ObservableCollection<ChartDataModel>
{
new ChartDataModel("2014", 76.9),
new ChartDataModel("2015", 99.5),
new ChartDataModel("2016", 121.7),
new ChartDataModel("2017", 142.5)
};
StackedColumnData3 = new ObservableCollection<ChartDataModel>
{
new ChartDataModel("2014", 66.1),
new ChartDataModel("2015", 79.3),
new ChartDataModel("2016", 91.3),
new ChartDataModel("2017", 102.4)
};
StackedColumnData4 = new ObservableCollection<ChartDataModel>
{
new ChartDataModel("2014", 34.1),
new ChartDataModel("2015", 38.2),
new ChartDataModel("2016", 44.0),
new ChartDataModel("2017", 51.6)
};
}
}
}