Profile Picture

Legend issues

Posted By Steve Weixel 14 Years Ago
Author
Message
Steve Weixel
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 1, Visits: 1
I haven't been able to get a legend to show up when I have it set to Automatic. If I set it to Manual it works but then of course I have to add the items for each series/data point and I don't see any way to get it to pick up the series style information. I'm sure I'm missing something obvious, any ideas? Thanks.

Nevron Support
Posted 14 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: Last Week
Posts: 3,054, Visits: 4,009

Hi Steve,

Most likely you did not assign chart(s) to the legend using the DisplayOnLegend property:

   NLegend legend = new NLegend();
   nChartControl1.Panels.Add(legend);

   NCartesianChart chart = new NCartesianChart();
   nChartControl1.Panels.Add(chart);

   chart.Series.Add(new NBarSeries());
   chart.DisplayOnLegend = legend;

Note that the chart and legend must be added to the document.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic