Profile Picture

Legend

Posted By John Burcher 15 Years Ago
Author
Message
John Burcher
Posted 15 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 15, Visits: 1
Hi,

How do I make the font size and icon smaller on the legend?

Thank you

bob milanov
Posted 15 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi John,

You have to touch the MarkSize as well as the series legend text style:

NChart chart = nChartControl1.Charts[0];

NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
bar.Legend.TextStyle.FontStyle.EmSize = new NLength(8);

chart.Series.Add(bar);

NLegend legend = nChartControl1.Legends[0];
legend.Data.MarkSize = new NSizeL(5, 5);

Hope this helps - let me know if you have any questions or meet any problems.

Best regards,
Bob





Similar Topics


Reading This Topic