C# 如何在XtraReport条形图中累积系列点数?

C# 如何在XtraReport条形图中累积系列点数?,c#,datatable,devexpress,bar-chart,xtrareport,C#,Datatable,Devexpress,Bar Chart,Xtrareport,我有一个DataTable,其中包含一个具有不同年份值的列,还有一个DevExpress XtraReport条形图,用于打印每年的值。在运行时,我创建的seriesPoint如下所示: foreach (DataRow row in listEcheances.Rows) { string expr = String.Format("ECHEANCE = #{0}#", echeDate.ToString(DateTimeFormatInfo.InvariantInf

我有一个DataTable,其中包含一个具有不同年份值的列,还有一个DevExpress XtraReport条形图,用于打印每年的值。在运行时,我创建的seriesPoint如下所示:

foreach (DataRow row in listEcheances.Rows)
    { 
        string expr = String.Format("ECHEANCE = #{0}#", echeDate.ToString(DateTimeFormatInfo.InvariantInfo));
        int nbRowsEcheance = DtData.Select(expr).Length;
        seriesEcheance.Points.Add(new SeriesPoint(Convert.ToDateTime(row    ["ECHEANCE"]).Year, nbRowsEcheance));
    }
条形图不会每年累积数值。我不知道该怎么对图表说。有人能帮我吗

谢谢