Exemplo n.º 1
0
 private void AppendChartSeries(ShimChartMember seriesParentMember, ShimChartMemberCollection seriesMembers)
 {
     if (seriesMembers == null)
     {
         this.m_series.Add(new ShimChartSeries(base.m_owner, this.m_series.Count, seriesParentMember));
     }
     else
     {
         int count = seriesMembers.Count;
         for (int i = 0; i < count; i++)
         {
             ShimChartMember shimChartMember = ((ReportElementCollectionBase <ChartMember>)seriesMembers)[i] as ShimChartMember;
             this.AppendChartSeries(shimChartMember, shimChartMember.Children as ShimChartMemberCollection);
         }
     }
 }
Exemplo n.º 2
0
 private void GenerateChartDataPoints(ShimChartMember seriesParentMember, ShimChartMember categoryParentMember, ShimChartMemberCollection categoryMembers)
 {
     if (categoryMembers == null)
     {
         this.m_cells.Add(new ShimChartDataPoint(base.m_chart, base.m_seriesIndex, this.m_cells.Count, seriesParentMember, categoryParentMember));
         this.TranslateChartType(base.m_chart.RenderChartDef.Type, base.m_chart.RenderChartDef.SubType);
     }
     else
     {
         int count = categoryMembers.Count;
         for (int i = 0; i < count; i++)
         {
             ShimChartMember shimChartMember = ((ReportElementCollectionBase <ChartMember>)categoryMembers)[i] as ShimChartMember;
             this.GenerateChartDataPoints(seriesParentMember, shimChartMember, shimChartMember.Children as ShimChartMemberCollection);
         }
     }
 }