mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 00:37:19 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<Page
|
||||
x:Class="UWP.CartesianChart.Missing_Line_Points.MissingPointsExample"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:UWP.CartesianChart.Missing_Line_Points"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:lvc="using:LiveCharts.Uwp"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<lvc:CartesianChart Series="{Binding Series}"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
@@ -0,0 +1,44 @@
|
||||
using LiveCharts;
|
||||
using LiveCharts.Uwp;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace UWP.CartesianChart.Missing_Line_Points
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class MissingPointsExample : Page
|
||||
{
|
||||
public MissingPointsExample()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Series = new SeriesCollection
|
||||
{
|
||||
new LineSeries
|
||||
{
|
||||
Values = new ChartValues<double>
|
||||
{
|
||||
4,
|
||||
5,
|
||||
7,
|
||||
8,
|
||||
double.NaN,
|
||||
5,
|
||||
2,
|
||||
8,
|
||||
double.NaN,
|
||||
6,
|
||||
2
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
DataContext = this;
|
||||
}
|
||||
|
||||
public SeriesCollection Series { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user