private TSeriesViewModel CreateSeriesViewModelAndScale(IEnumerable <DynamicMemberDescriptor> plot, string by, IPowerShellDataSource dataSource)
        {
            var props = plot.ToList();

            props.ForEach(p => dataSource.AddDynamicScaleForProperty(p.MemberInfo.Name));
            var names       = from prop in props select prop.MemberInfo.Name;
            var seriesNames =
                (from prop in plot
                 let propName = prop.MemberInfo.Name.StartsWith("_") ? null : prop.MemberInfo.Name
                                let scriptName =
                     prop.MemberInfo is PSScriptProperty
                            ? (prop.MemberInfo as PSScriptProperty).GetterScript.ToString()
                            : null
                     let indexName = prop.IndexValue
                                     select(indexName ?? propName ?? scriptName).ToString()).ToArray();
            var seriesName = String.Join(", ", seriesNames);

            return(_creator(seriesName, names.ToList(), by, dataSource));
        }
 private TSeriesViewModel CreateSeriesViewModelAndScale(string seriesName, string plot, string by, IPowerShellDataSource dataSource)
 {
     dataSource.AddDynamicScaleForProperty(plot);
     return(_creator(seriesName, new[] { plot }, by, dataSource));
 }