示例#1
0
        private Stacker <TDrawingContext> GetStacker(IDrawableSeries <TDrawingContext> series, int stackGroup)
        {
            var key = $"{series.SeriesProperties}.{stackGroup}";

            if (!stackers.TryGetValue(key, out var stacker))
            {
                stacker = new Stacker <TDrawingContext>();
                stackers.Add(key, stacker);
            }

            return(stacker);
        }
示例#2
0
        private Stacker <TDrawingContext> GetStacker(ISeries <TDrawingContext> series, int stackGroup)
        {
            var key = $"{series.SeriesType}.{series.Direction}.{stackGroup}";

            if (!stackers.TryGetValue(key, out var stacker))
            {
                stacker = new Stacker <TDrawingContext>(series.Direction);
                stackers.Add(key, stacker);
            }

            return(stacker);
        }