这就看你需求了,需要Legend就用,不用也可以,两个都用也可以。
- <c1:C1Chart Margin="10,10,10,10" Name="c1Chart1" ChartType="Pie" Palette="Foundry">
- <c1:C1Chart.Data>
- <c1:ChartData ItemNames="P1 P2 P3 P4 P5" >
- <c1:DataSeries Label="Series 1" RenderMode="Default" Values="20 22 19 24 25" PlotElementLoaded="DataSeries_PlotElementLoaded" />
- </c1:ChartData>
- </c1:C1Chart.Data>
- <c1:C1ChartLegend DockPanel.Dock="Right" />
- <TextBlock DockPanel.Dock="Top" Text="标 题" HorizontalAlignment="Center"/>
- </c1:C1Chart>
复制代码 |