<charts:Chart x:Name="ChartPat"
Theme="Theme2"
BorderBrush="Gray"
Padding="6"
View3D="False"
ToolBarEnabled="True" ToolTipEnabled="True" IndicatorEnabled="True"
AnimationEnabled="False" ZoomingEnabled="True" Margin="2,2,0,0" BorderThickness="0" >
<charts:Chart.Series>
<!--曲线一-->
<charts:DataSeries
RenderAs="Line" x:Name="DataSeriesLow"
Cursor="Hand"
MarkerEnabled="True"
AxisXType="Primary"
LineThickness="2"
DataSource="{Binding }"
ShadowEnabled="True"
AutoFitToPlotArea="True"
LightingEnabled="false"
LabelEnabled="True"
Color="#34495e" LabelFontSize="12" ToolTipText="#AxisXLabel,#LabelText,#YValue">
<charts:DataSeries.DataMappings>
<charts:DataMapping MemberName="AxisXLabel" Path="InspectionTime" />
<charts:DataMapping MemberName="LabelText" Path="PersonName" />
<charts:DataMapping MemberName="YValue" Path="ResultValue" />
</charts:DataSeries.DataMappings>
</charts:DataSeries>
</charts:Chart.Series>
</charts:Chart>
效果:
网友评论