44 строки
2.5 KiB
C#
44 строки
2.5 KiB
C#
#region Copyright Syncfusion Inc. 2001-2021.
|
|
// Copyright Syncfusion Inc. 2001-2021. 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
|
|
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
// applicable laws.
|
|
#endregion
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
|
|
namespace syncfusion.sparklinedemos.wpf
|
|
{
|
|
public class GettingStartedViewModel
|
|
{
|
|
Random rand = new Random();
|
|
|
|
public GettingStartedViewModel()
|
|
{
|
|
Data = new List<DataModel>();
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 100), ShareHolders = rand.Next(-20, 100), YearPerformance = (double)rand.Next(-20, 100) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 60), ShareHolders = rand.Next(-20, 60), YearPerformance = (double)rand.Next(-20, 60) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-30, 150), ShareHolders = rand.Next(-30, 150), YearPerformance = (double)rand.Next(-30, 150) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 100), ShareHolders = rand.Next(-20, 100), YearPerformance = (double)rand.Next(-20, 100) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 100), ShareHolders = rand.Next(-20, 100), YearPerformance = (double)rand.Next(-20, 100) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 100), ShareHolders = rand.Next(-20, 100), YearPerformance = (double)rand.Next(-20, 100) });
|
|
Data.Add(new DataModel() { Day = rand.Next(0, 200), ShareHolders = rand.Next(0, 200), YearPerformance = (double)rand.Next(0, 200) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 300), ShareHolders = rand.Next(-20, 300), YearPerformance = (double)rand.Next(-20, 300) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 100), ShareHolders = rand.Next(-20, 100), YearPerformance = (double)rand.Next(-20, 100) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-30, 150), ShareHolders = rand.Next(-30, 150), YearPerformance = (double)rand.Next(-30, 150) });
|
|
Data.Add(new DataModel() { Day = rand.Next(-20, 300), ShareHolders = rand.Next(-20, 300), YearPerformance = (double)rand.Next(-20, 300) });
|
|
}
|
|
|
|
public List<DataModel> Data
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
} |