Please find attached a sample project similar to your scenario demonstrating how to show legend item labels.
Shortly you first need to register for the ItemDataBound
event and set value to the Name
of each item. This value will be displayed in the legend. For example:
public void ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
e.SeriesItem.Name = dataSource.Rows[e.SeriesItem.Index]["LegendName column"].ToString();
Second as I see it is already done in the code provided is setting the series Appearance.LegendDisplayMode
in order to instruct the legend to show labels for each series item.
Regarding labels connectors, you could try setting the chart's AutoLayout
property to true
Hope this helps.
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed