Hey. I am working on a report that needs to have a few stacked bar charts. I can't get them to display properly. I am using a .Net class as the data source. The class is listed below.
When the report is produced I just get a regular bar chart. Could someone point out if this class I am using is sufficient to create the stacked bar chart? Also what are the correct options I used in Crystal Reports when designing the chart. What do I have to set under the data tab?
Thanks for any help.
| 1 |
public class ChartDataObject |
| 2 |
{ |
| 3 |
private string label = String.Empty; |
| 4 |
private double value = 0; |
| 5 |
|
| 6 |
public string Label |
| 7 |
{ |
| 8 |
get { return this.label; } |
| 9 |
} |
| 10 |
|
| 11 |
public double Value |
| 12 |
{ |
| 13 |
get { return this.value; } |
| 14 |
} |
| 15 |
|
| 16 |
public ChartDataObject(string label, double value) |
| 17 |
{ |
| 18 |
this.label = label; |
| 19 |
this.value = value; |
| 20 |
} |
| 21 |
} |