You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
814 B

using CommunityToolkit.Mvvm.ComponentModel;
using OxyPlot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GettingStarted.ViewModels
{
internal partial class MainViewModel2 : ObservableObject
{
[ObservableProperty]
private string _title;
[ObservableProperty]
private IList<DataPoint> _points;
public MainViewModel2()
{
Title = "Example 2";
Points = new List<DataPoint>()
{
new DataPoint(0, 4),
new DataPoint(10, 13),
new DataPoint(20, 15),
new DataPoint(30, 16),
new DataPoint(40, 12),
new DataPoint(50, 12)
};
}
}
}