public LegendItem[] GetLegendItems() { var singleLegendItem = new LegendItem() { label = Label, color = Color.Black }; return(new LegendItem[] { singleLegendItem }); }
public LegendItem[] GetLegendItems() { var singleLegendItem = new LegendItem() { label = label, color = Color.Gray, lineWidth = 10, markerShape = MarkerShape.none }; return(new LegendItem[] { singleLegendItem }); }
public LegendItem[] GetLegendItems() { var singleLegendItem = new LegendItem(this) { label = Label, color = Color, lineStyle = LineStyle, lineWidth = LineWidth, markerShape = MarkerShape.none }; return(new LegendItem[] { singleLegendItem }); }
public LegendItem[] GetLegendItems() { var singleItem = new LegendItem(this) { label = Label, color = LollipopColor, lineWidth = 10, markerShape = MarkerShape.none, borderColor = BorderColor, borderWith = 1 }; return(new LegendItem[] { singleItem }); }
public LegendItem[] GetLegendItems() { var singleItem = new LegendItem(this) { label = Label, color = Color, borderWith = Math.Min(BorderLineWidth, 3), borderColor = BorderColor, borderLineStyle = BorderLineStyle, hatchColor = HatchColor, hatchStyle = HatchStyle, }; return(new LegendItem[] { singleItem }); }
public LegendItem[] GetLegendItems() { var singleItem = new LegendItem() { label = Label, color = FillColor, lineWidth = 10, markerShape = MarkerShape.none, hatchColor = FillColorHatch, hatchStyle = HatchStyle, borderColor = BorderColor, borderWith = BorderLineWidth }; return(new LegendItem[] { singleItem }); }
public LegendItem[] GetLegendItems() { if (GroupLabels is null) { return(null); } List <LegendItem> legendItems = new List <LegendItem>(); for (int i = 0; i < GroupLabels.Length; i++) { var item = new LegendItem() { label = GroupLabels[i], color = FillColors[i], lineWidth = 10, markerShape = MarkerShape.none }; legendItems.Add(item); } return(legendItems.ToArray()); }