We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create multiple legends for a chart control?

Platform: WinForms |
Control: Chart


Essential Chart supports multiple legends in single chart control. It is used to view legend items more clearly when we have more number of series. To have multiple legends we need to create custom legends and add the series to it.

When we use custom legends we can also use default legend too. If we are not in need to default legend we can set ShowLegend property to false.


// Creating Legends

ChartLegend legend1 = new ChartLegend(chartControl1);

ChartLegend legend2 = new ChartLegend(chartControl1);

legend1.Name = "legend1";

legend2.Name = "legend2";

legend1.Position = ChartDock.Bottom;

legend2.Position = ChartDock.Right;

//Adding to Chart Control



s1.LegendName = "legend1";

s5.LegendName = "legend2";


' Creating Legends

Dim legend1 As ChartLegend = New ChartLegend(ChartControl1)

Dim legend2 As ChartLegend = New ChartLegend(ChartControl1)

legend1.Name = "legend1"

legend2.Name = "legend2"

legend1.Position = ChartDock.Bottom

legend2.Position = ChartDock.Right

' Adding to Chart Control



s1.LegendName = "legend1"

s5.LegendName = "legend2"

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile