1
<charting:PieSeries 
          IndependentValueBinding="{Binding Name}" DependentValueBinding="{Binding Count}">
    <charting:PieSeries.LegendItemStyle>
        <Style TargetType="charting:LegendItem">
            <Setter Property="Margin" Value="4 0 5 4"/>
            <Setter Property="Background" Value="Maroon"></Setter>
            <Setter Property="Foreground" Value="Silver"></Setter>
        </Style>
    </charting:PieSeries.LegendItemStyle>
</charting:PieSeries>

我想在饼图中显示一个带有百分比的名称。以上方式它只是生成一个没有标签百分比的饼图

4

0 回答 0