Jump to content

 

Photo
- - - - -

How to set the Width of the Legend


  • Please log in to reply
2 replies to this topic

#1 Enmaai

Enmaai

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 14 October 2011 - 01:00 AM

I create a pie chart with a legend . but the legend's width is too small

i set it's width maxwidth minwidth but useless.


Legend legend = new Legend();
legend.Name = "Legend0";
legend.MaxHeight = 500;
legend.Width = 500;
legend.MinWidth = 500;
legend.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch ;
legend.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;
legend.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;


one more question
can i hidden the legend's "total" ? and can i change the "total" to another text just like "all" ...

#2 shoaib

shoaib

    Advanced Member

  • Members
  • PipPipPip
  • 924 posts
  • Gender:Male
  • Location:Bangalore

Posted 14 October 2011 - 05:19 AM

I create a pie chart with a legend . but the legend's width is too small

Try setting MaxWidth in Legend and check.
Example:-
legend.MaxWidth = 100;

can i hidden the legend's "total" ? and can i change the "total" to another text just like "all" ...

Currently you will not be able to edit the legend's "total".

Regards,
Shoaib

#3 Enmaai

Enmaai

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 14 October 2011 - 05:54 AM

Try setting MaxWidth in Legend and check.
Example:-
legend.MaxWidth = 100;


Currently you will not be able to edit the legend's "total".

Regards,
Shoaib


thx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users