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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create multiple row/ column of legend with single series of chart

Thread ID:





68294 Sep 17,2007 08:57 AM UTC Sep 20,2007 05:20 AM UTC ASP.NET Web Forms (Classic) 1
Tags: Chart
Asked On September 17, 2007 08:57 AM UTC

hi all,
Herewith attached a sample chart that create by using delphi.How can syncfusion create a chart as in example (graph_Delphi.JPG) as i found that with only 1 series i can't create multiple row / column of data for my legend (graph_Syncfusion.JPG).


Hwee Hoon

sample graph.zip

Melba Winshia [Syncfusion]
Replied On September 20, 2007 05:20 AM UTC


Sorry for the delay in responding.

If your intention is to create a chart with multiple legends, it can be achieved by using the FilterItems event.

private void Legend_FilterItems(object sender, ChartLegendFilterItemsEventArgs e)

Syncfusion.Windows.Forms.Chart.ChartLegendItem s0 = new ChartLegendItem();
e.Items.Insert(0, s0);
e.Items[0].Type = ChartLegendItemType.Rectangle;
e.Items[0].Text = "-Best-In-Class";
e.Items[0].Interior = new Syncfusion.Drawing.BrushInfo(Color.Green);

Syncfusion.Windows.Forms.Chart.ChartLegendItem s1 = new ChartLegendItem();
e.Items.Insert(1, s1);
e.Items[1].Type = ChartLegendItemType.Rectangle;
e.Items[1].Text = "-Your Organization";
e.Items[1].Interior = new Syncfusion.Drawing.BrushInfo(Color.Yellow);

Syncfusion.Windows.Forms.Chart.ChartLegendItem s2 = new ChartLegendItem();
e.Items.Insert(2, s2);
e.Items[2].Type = ChartLegendItemType.Rectangle;
e.Items[2].Text = "-Average";
e.Items[2].Interior = new Syncfusion.Drawing.BrushInfo(Color.Lavender);


Please refer the sample in the below link which illustrates the above.


If I have misunderstood your requirement, could you please explain me in detail, so that I can work in depth and try to send a better solution?



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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