Hi
I am binding a chart at runtime to a generic list and having some difficulty with "what" gets charted. I have an object structure like this:
I want to use this for two different charts... one where the Y axis is for NumberConnectionPoints and the other where the Y axis is for AverageAmount.
The sample code on your site here gave me an idea of what I need to do (set the Series[0].DataYColumn), but the sample code throws an error (IndexOutOfRange) as there is no series... even though the datasource has been set?
Thanks,
John
I am binding a chart at runtime to a generic list and having some difficulty with "what" gets charted. I have an object structure like this:
sealed public class MisPricedRegions : List<MisPricedRegion> |
{ |
} |
sealed public class MisPricedRegion |
{ |
public string Region { get; set; } |
public string Quarter { get; set; } |
public int NumberConnectionPoints { get; set; } |
public double AverageAmount { get; set; } |
} |
I want to use this for two different charts... one where the Y axis is for NumberConnectionPoints and the other where the Y axis is for AverageAmount.
The sample code on your site here gave me an idea of what I need to do (set the Series[0].DataYColumn), but the sample code throws an error (IndexOutOfRange) as there is no series... even though the datasource has been set?
Thanks,
John