Profile Picture

How to show Leged for Multiple Bar series chart

Posted By shweta jain 4 Years Ago
Author
Message
shweta jain
Question Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
Hello,

I want to show legend for multiple bar series (which is shown as in different color) like in attached snapshot.
How can I show legend for bar series?

https://www.nevron.com/forum/uploads/images/b1b44b5c-f211-42bb-8c5d-5c0e.png







Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Shweta,
You can position the legend using legend docking as shown in the following example:
C# Examples \ All Examples \ Panels \ Legend \ Docking

As for the layout of the legend you need to set the legend expand mode to columns only (so that it grows horizontally):
legend.Data.ExpandMode = LegendExpandMode.ColsOnly;
You can also take a look at the following topics in the users guide:
http://helpdotnetvision.nevron.com/#UsersGuide_Legend_Legend_Overview.html
We hope this helps - let us know if you have any questions.

Best Regards,
Nevron Support Team



Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
One more thing - you can use:
someLegend.SetPredefinedLegendStyle(PredefinedLegendStyle.Bottom);
which will position the legend at the bottom and also switch the legend expand mode....

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic