Files
aistudio-wpf-diagram/Live-Charts-master/Examples/UWP/CartesianChart/LineExample/LineExample.xaml

28 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-07-23 09:42:22 +08:00
<Page
x:Class="UWP.CartesianChart.LineExample.LineExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UWP.CartesianChart.LineExample"
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}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<lvc:CartesianChart Grid.Row="2">
<lvc:CartesianChart.Series>
<lvc:VerticalLineSeries Values="{Binding Values}" DataLabels="True" />
</lvc:CartesianChart.Series>
<lvc:CartesianChart.DataTooltip>
<!--The Selection mode property should be done automatically in future versions-->
<lvc:DefaultTooltip SelectionMode="SharedYValues"></lvc:DefaultTooltip>
</lvc:CartesianChart.DataTooltip>
</lvc:CartesianChart>
</Grid>
</Page>