public ViewModel() { this.RevenueDetails = new ObservableCollection <Model>(); RevenueDetails.Add(new Model() { Category = "Income", Value = 4711 }); RevenueDetails.Add(new Model() { Category = "Marketing and sales", Value = -427 }); RevenueDetails.Add(new Model() { Category = "Research", Value = -588 }); RevenueDetails.Add(new Model() { Category = "Development", Value = -688 }); RevenueDetails.Add(new Model() { Category = "Other revenue", Value = 1030 }); RevenueDetails.Add(new Model() { Category = "Intermediate sum", Value = 4711, IsSummary = true }); RevenueDetails.Add(new Model() { Category = "Administrative", Value = -780 }); RevenueDetails.Add(new Model() { Category = "Other expense", Value = -361 }); RevenueDetails.Add(new Model() { Category = "Income tax", Value = -695 }); RevenueDetails.Add(new Model() { Category = "Net profit", Value = -695, IsSummary = true }); }
public WaterfallViewModel() { this.RevenueDetails = new ObservableCollection <WaterfallModel>(); RevenueDetails.Add(new WaterfallModel() { Category = "Sales", Value = 165 }); RevenueDetails.Add(new WaterfallModel() { Category = "Staff", Value = -47 }); RevenueDetails.Add(new WaterfallModel() { Category = "Balance", Value = -58, IsSummary = true }); RevenueDetails.Add(new WaterfallModel() { Category = "Others", Value = 15 }); RevenueDetails.Add(new WaterfallModel() { Category = "Tax", Value = -20 }); RevenueDetails.Add(new WaterfallModel() { Category = "Profit", Value = 45, IsSummary = true }); RevenueDetails.Add(new WaterfallModel() { Category = "Intentory", Value = -10 }); RevenueDetails.Add(new WaterfallModel() { Category = "Marketing", Value = -25 }); RevenueDetails.Add(new WaterfallModel() { Category = " Net Income", Value = 25, IsSummary = true }); }