Hi. I'm formatting a chart from the code behind. I've added some extra legend markers to my chart. The ones I've created have a nice grey border around the rectanglular boxes but the ones that are auto generated have no border. I can't seem to set the border no matter what I do. I've tried setting with the following:
I haven't set any border properties for the ones I've created. I'm creating these as follows. I've also attached a screen. Thanks.
RadChart1.Legend.Marker.Appearance.Border.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid;
RadChart1.Legend.Marker.Appearance.Border.Width = 1;
RadChart1.Legend.Marker.Appearance.Border.Color = Color.Silver;
I haven't set any border properties for the ones I've created. I'm creating these as follows. I've also attached a screen. Thanks.
LabelItem item1 =
new
LabelItem();
item1.Marker.Appearance.FillStyle.MainColor = HexToColor(
"#2FBA2F"
);
item1.Marker.Appearance.FillStyle.FillType = FillType.Solid;
item1.Marker.Appearance.Figure =
"Rectangle"
;
item1.TextBlock.Text =
"Good"
;