Example #1
0
        internal void NewOuterCells()
        {
            ChartDataPointInstancesList dataPoints = CurrentMultiChart.DataPoints;

            if (0 < m_currentCellInnerIndex || dataPoints.Count == 0)
            {
                if (((Chart)m_reportItemDef).ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column)
                {
                    ChartDataPointInstanceList value = new ChartDataPointInstanceList();
                    dataPoints.Add(value);
                }
                if (0 < m_currentCellInnerIndex)
                {
                    m_currentCellOuterIndex++;
                    m_currentCellInnerIndex = 0;
                }
            }
        }
Example #2
0
        internal ChartDataPointInstance AddCell(ReportProcessing.ProcessingContext pc, int currCellDPIndex)
        {
            ChartDataPointInstancesList dataPoints = CurrentMultiChart.DataPoints;
            Chart chart = (Chart)m_reportItemDef;
            int   num   = (currCellDPIndex < 0) ? GetCurrentCellDPIndex() : currCellDPIndex;
            ChartDataPointInstance chartDataPointInstance = new ChartDataPointInstance(pc, chart, GetCellDataPoint(num), num);

            if (chart.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column)
            {
                dataPoints[m_currentCellOuterIndex].Add(chartDataPointInstance);
            }
            else
            {
                if (m_currentCellOuterIndex == 0)
                {
                    Global.Tracer.Assert(dataPoints.Count == m_currentCellInnerIndex);
                    ChartDataPointInstanceList value = new ChartDataPointInstanceList();
                    dataPoints.Add(value);
                }
                dataPoints[m_currentCellInnerIndex].Add(chartDataPointInstance);
            }
            m_currentCellInnerIndex++;
            return(chartDataPointInstance);
        }