none
How to create a Stacked Area chart in Report Viewer RRS feed

  • Question

  • I am trying to create a chart using Visual Studio Reports (not Windows Forms). I would like to populate chart with data generated from objects in memory. The preview shows a reasonable chart however upon running the program, the chart is empty.
    Here is my data object class:

         public class Grade
            {
                private double m_values ;
                private int m_frequency;
       
                //CONSTRUCTOR
       
                public Grade(double values, int frequency)
                {
                    m_values = values;
                    m_frequency = frequency;
                }
             
       
                public double getValue { get { return m_values;  } }
                public int getFrequency { get {  return m_frequency;}  }
                
            }
       
            public class GradeList
            {
                private List<Grade> m_gradel;
       
                public GradeList()
                {
                    m_gradel= new List<Grade>{
       
                        new Grade(20,2),
                    new Grade ( 25,2),
                    new Grade(26,1),
                    new Grade (24,4),
                    new Grade(23,4),
                    new Grade(21,1)
       
                    };
                
       
                   }
       
                 public List<Grade> getGradeList { get { return m_gradel; } }
                   
            }


    • Edited by shruhash Monday, June 3, 2013 9:49 PM
    • Moved by Mike Feng Tuesday, June 4, 2013 1:37 AM
    Monday, June 3, 2013 9:46 PM

All replies