Profile Picture

Legend of dynamically added series in SSRS

Posted By Xavier Arul Kumar... 12 Years Ago
Author
Message
Xavier Arul Kumar...
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

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

In Nevron Chart for SSRS, in addition to the series added in the design time, I am adding a new series in the code section of chart designer. Here is the code.

NChart chart = context.Document.Charts[0];
NLineSeries line1 = new NLineSeries();
line1.Values.Add(311000);
line1.Values.Add(332000);
line1.Values.Add(443000);
line1.Values.Add(444000);
chart.Series.Add(line1);

The newly added line is drawn on the chart, but the legend of the new series is not shown up. Only the legend of first series(added at design time) is shown up.

Please help me to resolve this.

Thanks,
Xavier


Nevron Support
Posted 12 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: 5 hours ago
Posts: 3,054, Visits: 4,009

Hi Xavier,

You need to display the new series on the Legned:

chart.DisplayOnLegend = context.Document.Legends[0];



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic