chart sample
This commit is contained in:
@@ -5,18 +5,20 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ChartSample"
|
||||
xmlns:live="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:idd="clr-namespace:InteractiveDataDisplay.WPF;assembly=InteractiveDataDisplay.WPF"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="2*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!--Code-->
|
||||
<live:CartesianChart x:Name="chart" Grid.Row="0"
|
||||
BorderBrush="Red" BorderThickness="2" LegendLocation="Top" Margin="15"/>
|
||||
|
||||
|
||||
<!--Xaml-->
|
||||
<live:CartesianChart x:Name="xamlChart" Grid.Row="1"
|
||||
BorderBrush="Red" BorderThickness="2" LegendLocation="Top" Margin="15">
|
||||
@@ -28,8 +30,13 @@
|
||||
</live:CartesianChart.AxisX>
|
||||
<live:CartesianChart.Series>
|
||||
<live:LineSeries Stroke="Green" Title="Sample1" Values="100, 20, 45, 45, 12, 33, 56, 45, 83, 88"/>
|
||||
<live:LineSeries Stroke="Red" Title="Sample2" Values="33, 34, 443, 725, 162, 233, 46, 375, 93, 128"/>
|
||||
<live:LineSeries Stroke="Red" Title="Sample2" Values="33, 34, 43, 725, 162, 233, 46, 375, 93, 128"/>
|
||||
</live:CartesianChart.Series>
|
||||
</live:CartesianChart>
|
||||
|
||||
<idd:Chart x:Name="iddChart" Grid.Row="2"
|
||||
BottomTitle="Argument" LeftTitle="Function" Grid.RowSpan="2">
|
||||
<idd:LineGraph x:Name="iddLineGraph" Description="Simple Linegraph" Stroke="Blue" StrokeThickness="2"/>
|
||||
</idd:Chart>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
Reference in New Issue
Block a user