Files
aistudio-wpf-diagram/Live-Charts-master/Examples/UWP/CartesianChart/InLineSyntax/InLineSyntaxTest.xaml.cs
2021-07-23 09:42:22 +08:00

25 lines
815 B
C#

using LiveCharts;
using Windows.UI.Xaml.Controls;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace UWP.CartesianChart.InLineSyntax
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class InLineSyntaxTest : Page
{
public InLineSyntaxTest()
{
this.InitializeComponent();
}
public IChartValues LineSeries1 { get; set; } = new ChartValues<int>(new int[] { 1, 2, 3, 5 });
public IChartValues LineSeries2 { get; set; } = new ChartValues<int>(new int[] { 4, 6, 2, 5 });
public string[] Labels { get; set; } = new string[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Ago", "Sep", "Oct" };
}
}