Exemplo n.º 1
0
        /// <summary>
        /// Add a lollipop plot for the given values using defined lollipop positions
        /// </summary>
        public LollipopPlot AddLollipop(double[] values, double[] positions, Color?color = null)
        {
            var plottable = new LollipopPlot(positions, values)
            {
                LollipopColor = color ?? GetNextColor()
            };

            Add(plottable);
            return(plottable);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add a Lollipop plot for the given values. Lollipops will be placed at X positions 0, 1, 2, etc.
        /// </summary>
        public LollipopPlot AddLollipop(double[] values, Color?color = null)
        {
            double[] xs        = DataGen.Consecutive(values.Length);
            var      plottable = new LollipopPlot(xs, values)
            {
                LollipopColor = color ?? GetNextColor()
            };

            Add(plottable);
            return(plottable);
        }