Hide the legend on the charting control

Oct 21, 2012 at 7:50 PM

Hi,

I want to use the charting control from your amazing toolkit. Is it possible to hide the legend on the right side?

Thanks a lot. 

Coordinator
Oct 22, 2012 at 11:38 PM

I think you could edit the control template to remove the legend, but I could not find an option to remove it. It is a port from Silverlight Toolkit and if you look up "Silverlight Toolkit Chart hide legend" you can find pages like these that should work:

 

http://forums.silverlight.net/t/44237.aspx/1

 

http://stackoverflow.com/questions/9863827/how-can-i-hide-the-legend

Oct 23, 2012 at 12:00 PM
Edited Oct 23, 2012 at 12:00 PM

Yeah, thanks for your answer. With the simple snippet

<charting:Chart.LegendStyle>
  <Style TargetType="FrameworkElement">
    <Setter Property="Width" Value="0" />
  </Style>
</charting:Chart.LegendStyle>
you can hide the legend for the graph.