How to show Leged for Multiple Bar series chart


Author
Message
shweta jain
shweta jain
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search