Charting - Remove Legend

May 25, 2010 at 4:54 PM

I have a chart (see opening tags below) in which I am trying to remove the legend either directly in the xaml or code-behind. Any help would be greatly appreciated.

 <DVC:Chart Name="voiceChart" Title="Voice Tracks" Margin="235,35.725,-1,193" Grid.Row="3" Visibility="Collapsed">   

<DVC:LineSeries Name="series1" ItemsSource="{Binding}" IndependentAxis="{Binding Key}" DependentRangeAxis="{Binding Value }" />

<font size="2" color="#0000ff">

<

</font>DVC:Chart.Axes >

 

 

<font size="2" color="#0000ff">

<

</font>DVC:LinearAxis Name="xAxis" Orientation="Y" Minimum="0" Maximum="5">

 

<font size="2" color="#0000ff">

<

</font>DVC:LinearAxis.AxisLabelStyle >

<font size="2" color="#0000ff">

<

</font>Style TargetType="DVC:AxisLabel">

 

<font size="2" color="#0000ff">

<

</font>Setter Property ="Template">

<font size="2" color="#0000ff">

<

</font>
Setter.Value >
 
 

 

 

 

 

 

 

 

 

 

 

 

<font size="2" color="#0000ff">

<

</font>ControlTemplate TargetType ="DVC:AxisLabel">

<font size="2" color="#0000ff">

<

</font>
TextBlock Text="{Binding Converter={StaticResource VoiceFileToStringConverter }}" />