SeriesMapping.CollectionIndex

2 posts, 0 answers
  1. Gareth Burns
    Gareth Burns avatar
    4 posts
    Member since:
    Apr 2010

    Posted 19 May 2010 Link to this post

    Hi,

    I am trying to create a line chart using a list of custom business objects as the data.

    The object that im trying to pass is made up as follows.....

    public

     

     

    class Score {

     

         public Score(Double inScore, DateTime inDate) {

                this.score = inScore; 
                
    this.date = inDate;

     

         }

            

     

    public Double score {get;set;} 
            
    public DateTime date{get;set;}

     

     

     

    }

    public class chartObject {

        
    public chartUser(String inName, List<Score> inScores) { 
            
    this.scores = inScores;
            
    this.name = inName;
        }

        
    public String name{ get; set; } 
        
    public List<Score> scores{ get; set; }

     

     

    }

    How can I get my line graph to generate the data based on passing a chartObject? I just want to show the scores over the date period on the graph but cannot work out how to get the data from the list.

    I have tried using the CollectionIndex but with no joy.
    Thanks in advance for your help

     

     

     

     

  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 24 May 2010 Link to this post

    Hi Gareth,

    Can you, please, provide more information on what exactly do you want to achieve? How many series, what values are to be displayed for each series, etc.

    Sincerely yours,
    Joshua
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top