public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (null == value) { return(""); } ChartSegment chart_segment = value as ChartSegment; IList data_source = (IList)chart_segment.Series.DataSource; ChartItem chart_item = (ChartItem)data_source[chart_segment.CorrespondingPoints[0].Index]; return(String.Format("During the week starting {0} you {1} {2} paper(s)", DateFormatter.asDDMMMYYYY(chart_item.Timestamp), chart_segment.Series.Name.ToLower(), chart_item.Count)); }