Profile Picture

How to show Leged for Multiple Bar series chart

Posted By shweta jain Last Year
Author
Message
shweta jain
Question Posted Last Year
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: Last Year
Posts: 14, Visits: 185
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 Last Year
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,945, Visits: 3,303
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 Last Year
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,945, Visits: 3,303
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