Пример #1
0
 private void GenerateInnerHierarchy(Chart owner, ShimChartMember parent, bool isCategory, Microsoft.ReportingServices.ReportRendering.ChartMemberCollection children)
 {
     if (children != null)
     {
         m_children = new ShimChartMemberCollection(this, owner, isCategory, this, children);
     }
     else
     {
         owner.GetAndIncrementMemberCellDefinitionIndex();
     }
 }
        private void AppendChartSeries(ShimChartMember seriesParentMember, ShimChartMemberCollection seriesMembers)
        {
            if (seriesMembers == null)
            {
                m_series.Add(new ShimChartSeries(m_owner, m_series.Count, seriesParentMember));
                return;
            }
            int count = seriesMembers.Count;

            for (int i = 0; i < count; i++)
            {
                ShimChartMember shimChartMember = seriesMembers[i] as ShimChartMember;
                AppendChartSeries(shimChartMember, shimChartMember.Children as ShimChartMemberCollection);
            }
        }
Пример #3
0
        private void GenerateChartDataPoints(ShimChartMember seriesParentMember, ShimChartMember categoryParentMember, ShimChartMemberCollection categoryMembers)
        {
            if (categoryMembers == null)
            {
                m_cells.Add(new ShimChartDataPoint(m_chart, m_seriesIndex, m_cells.Count, seriesParentMember, categoryParentMember));
                TranslateChartType(m_chart.RenderChartDef.Type, m_chart.RenderChartDef.SubType);
                return;
            }
            int count = categoryMembers.Count;

            for (int i = 0; i < count; i++)
            {
                ShimChartMember shimChartMember = categoryMembers[i] as ShimChartMember;
                GenerateChartDataPoints(seriesParentMember, shimChartMember, shimChartMember.Children as ShimChartMemberCollection);
            }
        }