Profile Picture

Cannot change size of legend.

Posted By Michael Lane 13 Years Ago
Author
Message
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi Michael,

This appears to be a bug in the control - it will be fixed by the end of this week and you should redownload the control setup from our website.



Best Regards,
Nevron Support Team



Michael Lane
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 3, Visits: 1

I would like my legend to span the width of my chart across the bottom. If I leave the "UseAutomaticSize" property set to "true" the I see my legend but it is, of course, auto-sized. If I turn this property off, I never see the legend appear at all, no matter what I use for location and size. Here is the code I currently have:

protected virtual void ConfigureLegend()
{
NLegend legend = Chart.Legends[0];

legend.Visible = true;
legend.Mode = LegendMode.Manual;

legend.FillStyle = new NColorFillStyle(Color.Beige);
legend.UseAutomaticSize = false;
legend.ContentAlignment = ContentAlignment.MiddleCenter;
legend.Location = new NPointL(120, 270);
legend.Size = new NSizeL(new NLength(300, NGraphicsUnit.Point), new NLength(300, NGraphicsUnit.Point));


}

Can anyone help me troubleshoot this issue? Why does the legend fail to appear when I turn off UseAutoSize? Thanks in advance for the help.





Similar Topics


Reading This Topic