public StrategyDataItemInfo CreateHistogrammDetailItem(IStrategyDataItemInfoOwner visual) { object ds = DataSource == null ? visual.Items : DataSource; StrategyDataItemInfo detail = new StrategyDataItemInfo(); detail.ChartType = ChartType; detail.Color = Color; detail.FieldName = "Y"; detail.ArgumentScaleType = ArgumentScaleType.Numerical; detail.ArgumentDataMember = "X"; detail.FormatString = FormatString; detail.GraphWidth = GraphWidth; detail.Name = Name; detail.PanelName = PanelName; detail.Type = DataType.Numeric; detail.DataSource = HistogrammCalculator.Calculate(ds, FieldName, ClasterizationWidth); return(detail); }