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" ...
How to set the Width of the Legend
Started by Enmaai, Oct 14 2011 01:00 AM
2 replies to this topic
#1
Posted 14 October 2011 - 01:00 AM
#2
Posted 14 October 2011 - 05:19 AM
Try setting MaxWidth in Legend and check.I create a pie chart with a legend . but the legend's width is too small
Example:-
legend.MaxWidth = 100;
Currently you will not be able to edit the legend's "total".can i hidden the legend's "total" ? and can i change the "total" to another text just like "all" ...
Regards,
Shoaib
#3
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










