WPF LiveChart如何去除Piechart系列的白色边框
WPF LiveChart how to remove White border of Piechart series
我有一个 WPF-LiveChart(lvcharts.net) PieSeries 图表,但它包含一个白色边框。我如何删除那些白色背景。请参阅代码
<lvc:PieChart Visibility="Visible" Name="TestCaseChart" Grid.Row="0" Grid.Column="1" Series="{Binding SeriesCollection}" InnerRadius="100" Width="180" Height="180" BorderThickness="0" BorderBrush="Transparent"></lvc:PieChart>
我尝试了 BorderBrush 和 BorderThickness 属性,但图表没有使用这些属性 properties.Basically 我的屏幕背景是黑色的,所以在这些图表系列上看到白色背景很尴尬。
试试这个:
<lvc:PieChart LegendLocation="Bottom" DataClick="Chart_OnDataClick" Hoverable="False" DataTooltip="{x:Null}" ScrollBarFill="{x:Null}">
<lvc:PieChart.Series>
<lvc:PieSeries Title="Maria" Values="13" DataLabels="True"
LabelPoint="{Binding PointLabel}" Stroke="{x:Null}" StrokeThickness="0"/>
<lvc:PieSeries Title="Charles" Values="4" DataLabels="True"
LabelPoint="{Binding PointLabel}" Foreground="{x:Null}" Stroke="{x:Null}" StrokeThickness="0"/>
<lvc:PieSeries Title="Frida" Values="6" DataLabels="True"
LabelPoint="{Binding PointLabel}" Foreground="{x:Null}" Stroke="{x:Null}" StrokeThickness="0"/>
<lvc:PieSeries Title="Frederic" Values="2" DataLabels="True"
LabelPoint="{Binding PointLabel}" Foreground="{x:Null}" Stroke="{x:Null}" StrokeThickness="0"/>
</lvc:PieChart.Series>
</lvc:PieChart>
我有一个 WPF-LiveChart(lvcharts.net) PieSeries 图表,但它包含一个白色边框。我如何删除那些白色背景。请参阅代码
<lvc:PieChart Visibility="Visible" Name="TestCaseChart" Grid.Row="0" Grid.Column="1" Series="{Binding SeriesCollection}" InnerRadius="100" Width="180" Height="180" BorderThickness="0" BorderBrush="Transparent"></lvc:PieChart>
我尝试了 BorderBrush 和 BorderThickness 属性,但图表没有使用这些属性 properties.Basically 我的屏幕背景是黑色的,所以在这些图表系列上看到白色背景很尴尬。
试试这个:
<lvc:PieChart LegendLocation="Bottom" DataClick="Chart_OnDataClick" Hoverable="False" DataTooltip="{x:Null}" ScrollBarFill="{x:Null}">
<lvc:PieChart.Series>
<lvc:PieSeries Title="Maria" Values="13" DataLabels="True"
LabelPoint="{Binding PointLabel}" Stroke="{x:Null}" StrokeThickness="0"/>
<lvc:PieSeries Title="Charles" Values="4" DataLabels="True"
LabelPoint="{Binding PointLabel}" Foreground="{x:Null}" Stroke="{x:Null}" StrokeThickness="0"/>
<lvc:PieSeries Title="Frida" Values="6" DataLabels="True"
LabelPoint="{Binding PointLabel}" Foreground="{x:Null}" Stroke="{x:Null}" StrokeThickness="0"/>
<lvc:PieSeries Title="Frederic" Values="2" DataLabels="True"
LabelPoint="{Binding PointLabel}" Foreground="{x:Null}" Stroke="{x:Null}" StrokeThickness="0"/>
</lvc:PieChart.Series>
</lvc:PieChart>