在项目运行之前添加对DynamicDataDisplay.dll的引用
1 前台代码
<Window x:Class="WpfDataToReport"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
Title="WpfDataToReport" Height="400" Width="600" WindowState="Maximized" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded">
<Grid>
<d3:ChartPlotter Name="plotter" >
<d3:ChartPlotter.HorizontalAxis>
<d3:HorizontalDateTimeAxis Name="dateAxis" />
</d3:ChartPlotter.HorizontalAxis>
<d3:ChartPlotter.VerticalAxis>
<d3:VerticalIntegerAxis Name="countAxis" />
</d3