BorderThickness="0"
EnableAnimation="True"
Grid.Row="1">
<dxc:ChartControl.Diagram>
<dxc:SimpleDiagram2D>
<dxc:SimpleDiagram2D.Series>
<dxc:PieSeries2D x:Name="Series" ArgumentScaleType="Qualitative"
HoleRadiusPercent="0">
<dxc:PieSeries2D.PointAnimation>
<dxc:Pie2DFlyInAnimation Duration="0:0:1.5" PointOrder="Random" />
</dxc:PieSeries2D.PointAnimation>
<dxc:PieSeries2D.PointOptions>
<dxc:PointOptions PointView="ArgumentAndValues">
<dxc:PointOptions.ValueNumericOptions>
<dxc:NumericOptions Format="Percent" Precision="0" />
</dxc:PointOptions.ValueNumericOptions>
</dxc:PointOptions>
</dxc:PieSeries2D.PointOptions>
<dxc:PieSeries2D.Label>
<dxc:SeriesLabel Visible="True"
dxc:PieSeries.LabelPosition="Outside"
RenderMode="RectangleConnectedToCenter" />
</dxc:PieSeries2D.Label>
<dxc:PieSeries2D.Points>
<dxc:SeriesPoint Argument="USA" Value="9.63142" />
<dxc:SeriesPoint Argument="Canada" Value="9.98467" />
<dxc:SeriesPoint Argument="Russia" Value="17.0752" />
<dxc:SeriesPoint Argument="Others" Value="81.2" />
<dxc:SeriesPoint Argument="India" Value="3.28759" />
<dxc:SeriesPoint Argument="Australia" Value="7.68685" />
<dxc:SeriesPoint Argument="Brazil" Value="8.511965" />
<dxc:SeriesPoint Argument="China" Value="9.59696" />
</dxc:PieSeries2D.Points>
</dxc:PieSeries2D>
</dxc:SimpleDiagram2D.Series>
</dxc:SimpleDiagram2D>
</dxc:ChartControl.Diagram>
</dxc:ChartControl>
--MVVM模式下进行数据绑定
<dxc:ChartControl Name="chart"
BorderThickness="0"
EnableAnimation="True"
DataSource="{Binding TypeList}"
Grid.Row="1">
<dxc:ChartControl.Diagram>
<dxc:SimpleDiagram2D>
<dxc:SimpleDiagram2D.Series>
<dxc:PieSeries2D x:Name="Series"
ArgumentDataMember="Value"
ValueDataMember="Key"
ArgumentScaleType="Qualitative"
HoleRadiusPercent="0">
<dxc:PieSeries2D.PointAnimation>
<dxc:Pie2DFlyInAnimation Duration="0:0:1.5" PointOrder="Random" />
</dxc:PieSeries2D.PointAnimation>
<dxc:PieSeries2D.PointOptions>
<dxc:PointOptions PointView="ArgumentAndValues">
<dxc:PointOptions.ValueNumericOptions>
<dxc:NumericOptions Format="Percent" Precision="0" />
</dxc:PointOptions.ValueNumericOptions>
</dxc:PointOptions>
</dxc:PieSeries2D.PointOptions>
<dxc:PieSeries2D.Label>
<dxc:SeriesLabel Visible="True"
dxc:PieSeries.LabelPosition="Outside"
RenderMode="RectangleConnectedToCenter" />
</dxc:PieSeries2D.Label>
</dxc:PieSeries2D>
</dxc:SimpleDiagram2D.Series>
</dxc:SimpleDiagram2D>
</dxc:ChartControl.Diagram>
</dxc:ChartControl>