Hi Saulo,
Greetings from Syncfusion.
We have analyzed your requirement and you can achieve this by using RowsCount property in legend as per the below code snippet.
| [C#] //Place legend outside the chart area this.chartControl1.LegendsPlacement = ChartPlacement.Outside; //Place legend at the top of chart area this.chartControl1.Legend.Position = ChartDock.Top; //Center align the legend items this.chartControl1.Legend.Alignment = ChartAlignment.Center; //Number of rows required for legend int numberOfLegendsInRow = 4; //Set required number of rows using RowsCount property this.chartControl1.Legend.RowsCount = (int)Math.Floor((double)this.chartControl1.Legend.Items.Length / numberOfLegendsInRow); |
We have prepared a sample based on this, please find the sample from the following location.
Note: When legend is positioned at right or left side of the chart area, legend items will be displayed in multiple lines by default.
Output:
Hope this helps.
Regards,
Muneesh Kumar G