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.
|
Group: Forum Members
Last Active: Last Week
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
|