Hi,
The default legend shape is Rectangle. I would like to show Line in the legend. I cannot show other shapes for Line chart. I see Line is not supported in Legend.
I see from other post(other products of Telerik), the alternate way. But none of those works for Telerik reports.
Here is what i'm doing following other post, to show the legend as Line.
Is there any alternative to achieve this?
Thanks
The default legend shape is Rectangle. I would like to show Line in the legend. I cannot show other shapes for Line chart. I see Line is not supported in Legend.
I see from other post(other products of Telerik), the alternate way. But none of those works for Telerik reports.
Here is what i'm doing following other post, to show the legend as Line.
Telerik.Reporting.Charting.LabelItem wirlegendItem = new Telerik.Reporting.Charting.LabelItem(WIRseries.Name);
wirlegendItem.Marker.Appearance.FillStyle.MainColor = System.Drawing.Color.Black;
wirlegendItem.Marker.Appearance.Figure = Telerik.Reporting.Charting.Styles.DefaultFigures.Rectangle;
wirlegendItem.Marker.Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid;
wirlegendItem.Marker.Appearance.Dimensions.Margins.Top = Telerik.Reporting.Charting.Styles.Unit.Pixel(0);
wirlegendItem.Marker.Appearance.Dimensions.Margins.Bottom = Telerik.Reporting.Charting.Styles.Unit.Pixel(0);
wirlegendItem.Marker.Appearance.Dimensions.Margins.Left = Telerik.Reporting.Charting.Styles.Unit.Pixel(5);
wirlegendItem.Marker.Appearance.Dimensions.Margins.Right = Telerik.Reporting.Charting.Styles.Unit.Pixel(5);
wirlegendItem.Marker.Appearance.Dimensions.Paddings.Top = Telerik.Reporting.Charting.Styles.Unit.Pixel(5);
wirlegendItem.Marker.Appearance.Dimensions.Paddings.Bottom = Telerik.Reporting.Charting.Styles.Unit.Pixel(5);
wirlegendItem.Marker.Appearance.Dimensions.Paddings.Left = Telerik.Reporting.Charting.Styles.Unit.Pixel(0);
wirlegendItem.Marker.Appearance.Dimensions.Paddings.Right = Telerik.Reporting.Charting.Styles.Unit.Pixel(0);
this.chtWFRWIR.Legend.Items.Add(wirlegendItem);
Is there any alternative to achieve this?
Thanks