This is a migrated thread and some comments may be shown as answers.

SeriesMapping.CollectionIndex

1 Answer 87 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Gareth Burns
Top achievements
Rank 1
Gareth Burns asked on 19 May 2010, 12:06 PM
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

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 24 May 2010, 02:27 PM
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.
Tags
Chart
Asked by
Gareth Burns
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or