public override LegendItem[] GetLegendItems()
        {
            // TODO: determine how to respect line width in legend
            var singleLegendItem = new LegendItem(label, color, lineStyle, lineWidth, markerShape, markerSize);

            return(new LegendItem[] { singleLegendItem });
        }
Ejemplo n.º 2
0
        public override LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem(label, color)
            {
                lineStyle   = lineStyle,
                lineWidth   = lineWidth,
                markerShape = (markersAreVisible) ? MarkerShape.filledCircle : MarkerShape.none,
                markerSize  = (markersAreVisible) ? markerSize : 0
            };

            return(new LegendItem[] { singleLegendItem });
        }
Ejemplo n.º 3
0
        public override LegendItem[] GetLegendItems()
        {
            if (groupNames is null)
            {
                return(null);
            }

            var items = new LegendItem[groupNames.Length];

            for (int i = 0; i < groupNames.Length; i++)
            {
                items[i] = new LegendItem(groupNames[i], fillColors[i], lineWidth: 10, markerShape: MarkerShape.none);
            }
            return(items);
        }
Ejemplo n.º 4
0
        public override LegendItem[] GetLegendItems()
        {
            if (groupNames is null)
            {
                return(null);
            }

            var items = new LegendItem[values.Length];

            for (int i = 0; i < values.Length; i++)
            {
                items[i] = new LegendItem(groupNames[i], colors[i], lineWidth: 10);
            }
            return(items);
        }
Ejemplo n.º 5
0
        public override LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem(label, color, lineStyle, lineWidth, MarkerShape.none);

            return(new LegendItem[] { singleLegendItem });
        }
Ejemplo n.º 6
0
        public override LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem(label, color, markerShape: MarkerShape.none);

            return(new LegendItem[] { singleLegendItem });
        }
Ejemplo n.º 7
0
        public override LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem(label, System.Drawing.Color.Gray, lineWidth: 10, markerShape: MarkerShape.none); //Colours in the legend is kinda difficult...

            return(new LegendItem[] { singleLegendItem });
        }
Ejemplo n.º 8
0
        public override LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem(label, color, markerSize: 0, lineWidth: 10);

            return(new LegendItem[] { singleLegendItem });
        }
Ejemplo n.º 9
0
        public override LegendItem[] GetLegendItems()
        {
            var singleLegendItem = new LegendItem(label, fillColor, lineWidth: 10, markerShape: MarkerShape.none);

            return(new LegendItem[] { singleLegendItem });
        }