示例#1
0
        /// <summary>
        /// Gets the stack position.
        /// </summary>
        /// <param name="series">The series.</param>
        /// <param name="stackGroup">The stack group.</param>
        /// <returns></returns>
        public StackPosition <TDrawingContext>?GetStackPosition(IDrawableSeries <TDrawingContext> series, int stackGroup)
        {
            if (!series.IsStackedSeries())
            {
                return(null);
            }

            var s = GetStacker(series, stackGroup);

            return(s == null
                ? null
                : new StackPosition <TDrawingContext>
            {
                Stacker = s,
                Position = s.GetSeriesStackPosition(series)
            });
        }