示例#1
0
        public LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem()
            {
                label = Label,
                color = Color.Black
            };

            return(new LegendItem[] { singleLegendItem });
        }
示例#2
0
        public LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem()
            {
                label       = label,
                color       = Color.Gray,
                lineWidth   = 10,
                markerShape = MarkerShape.none
            };

            return(new LegendItem[] { singleLegendItem });
        }
示例#3
0
        public LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem(this)
            {
                label       = Label,
                color       = Color,
                lineStyle   = LineStyle,
                lineWidth   = LineWidth,
                markerShape = MarkerShape.none
            };

            return(new LegendItem[] { singleLegendItem });
        }
示例#4
0
        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 });
        }
示例#5
0
        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 });
        }
示例#6
0
        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 });
        }
示例#7
0
        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());
        }