<c1:C1FlexPie x:Name="TDoseChart">
<c1:C1FlexPie.DataLabel>
<c1 ieDataLabel Content="{}{Name}" />
</c1:C1FlexPie.DataLabel>
<c1:C1FlexPie.HeaderStyle>
<c1:ChartStyle FontSize="15" FontFamily="GenericSansSerif"/>
</c1:C1FlexPie.HeaderStyle>
</c1:C1FlexPie>
r data = new ObservableCollection<DataItem>();
data.Add(new DataItem(150, "中"));
data.Add(new DataItem(100, "源"));
data.Add(new DataItem(80, "光"));
TDoseChart.BeginUpdate();
TDoseChart.Binding = "Value";
TDoseChart.BindingName = "Name";
TDoseChart.Header = "集体统计图";
TDoseChart.ItemsSource = data;
TDoseChart.LegendPosition=Position.Left;
TDoseChart.EndUpdate();
这是源码,WPF的,但是结果如下图
|