Silverlight DevExpress ChartControl LineSeries2D效果展示

<dxc:ChartControl x:Name="chartControl1" Margin="0,71,0,0">

<dxc:XYDiagram2D Margin="-10" Background="White">

<dxc:XYDiagram2D.AxisX>

<dxc:AxisX2D x:Name="axisX" GridLinesVisible="False" GridSpacing="1" Visible="True">

<dxc:AxisX2D.Title>

<dxc:AxisTitle Content="方位角(度)" FontSize="14" FontWeight="Bold" /><!--显示X轴标题-->

</dxc:AxisX2D.Title>

<dxc:AxisX2D.NumericOptions>

<dxc:NumericOptions Format="FixedPoint" />

</dxc:AxisX2D.NumericOptions>

<dxc:AxisX2D.Range>

<dxc:AxisRange SideMarginsEnabled="False" />

</dxc:AxisX2D.Range>

<dxc:AxisX2D.Label>

<dxc:AxisLabel BeginText="" EndText="" Visible="True" />

</dxc:AxisX2D.Label>

<dxc:AxisX2D.CustomLabels>

<dxc:CustomAxisLabel Content="0" Value="0"/><!--自定义X轴刻度-->

<dxc:CustomAxisLabel Content="90" Value="90"/>

<dxc:CustomAxisLabel Content="180" Value="180"/>

<dxc:CustomAxisLabel Content="270" Value="270"/>

<dxc:CustomAxisLabel Content="360" Value="360"/>

</dxc:AxisX2D.CustomLabels>

</dxc:AxisX2D>

</dxc:XYDiagram2D.AxisX>

<dxc:XYDiagram2D.AxisY>

<dxc:AxisY2D x:Name="axisY" GridLinesMinorVisible="False" GridLinesVisible="False" GridLinesBrush="Red" GridSpacing="10"><!--设置Y轴网格线颜色及间隔-->

<dxc:AxisY2D.Title>

<dxc:AxisTitle Content="仰角值(度)" FontSize="14" FontWeight="Bold" />

</dxc:AxisY2D.Title>

<dxc:AxisY2D.CrosshairAxisLabelOptions>

<dxc:CrosshairAxisLabelOptions Pattern="${V:F0}" />

</dxc:AxisY2D.CrosshairAxisLabelOptions>

<dxc:AxisY2D.Range>

<dxc:AxisRange dxc:AxisY2D.AlwaysShowZeroLevel="False" />

</dxc:AxisY2D.Range>

<dxc:AxisY2D.Label>

<dxc:AxisLabel BeginText="" EndText="" />

</dxc:AxisY2D.Label>

</dxc:AxisY2D>

</dxc:XYDiagram2D.AxisY>

<dxc:XYDiagram2D.DefaultPane>

<dxc:Pane Background="Yellow"><!--设置默认面板的颜色-->

 

</dxc:Pane>

</dxc:XYDiagram2D.DefaultPane>

<dxc:LineSeries2D DisplayName="" MarkerSize="15" MarkerVisible="True" x:Name="_lineSeries"><!--X轴刻度对应的统计连线用圆点显示-->

<dxc:LineSeries2D.LineStyle>

<dxc:LineStyle Thickness="1" /><!--统计连线粗-->

</dxc:LineSeries2D.LineStyle>

<dxc:LineSeries2D.Points>

<dxc:SeriesPoint Argument="0" Value="25"/>

<dxc:SeriesPoint Argument="90" Value="45"/>

<dxc:SeriesPoint Argument="180" Value="35"/>

<dxc:SeriesPoint Argument="270" Value="55"/>

<dxc:SeriesPoint Argument="360" Value="10"/>

</dxc:LineSeries2D.Points>

</dxc:LineSeries2D>

<dxc:LineSeries2D ArgumentScaleType="Numerical" x:Name="_lineSeries2" ArgumentDataMember="Angle" ValueDataMember="Angle2" ColorEach="True" ><!--数据源绑定-->

<dxc:LineSeries2D.Points>

<dxc:SeriesPoint Argument="0" Value="15"/>

<dxc:SeriesPoint Argument="90" Value="35"/>

<dxc:SeriesPoint Argument="180" Value="25"/>

<dxc:SeriesPoint Argument="270" Value="45"/>

<dxc:SeriesPoint Argument="360" Value="0"/>

</dxc:LineSeries2D.Points>

</dxc:LineSeries2D>

</dxc:XYDiagram2D>

<dxc:ChartControl.Palette><!--统计连线调色板-->

<dxc:CustomPalette>

<dxc:CustomPalette.Colors>

<Color>red</Color>

<Color>Blue</Color>

<Color>Green</Color>

<Color>Yellow</Color>

</dxc:CustomPalette.Colors>

</dxc:CustomPalette>

</dxc:ChartControl.Palette>

</dxc:ChartControl>

你可能感兴趣的:(Silverlight DevExpress ChartControl LineSeries2D效果展示)