I have a report that shows a table of data, and I'd like to add a line graph showing 2 bits of data over time, I've been able to get the graph to show on the page (using the VS integrated editor), but I'm having issues getting it to actually pick up the data from my reports datasource. I am using a List of Objects as the data source, the structure of which is here:
The reports datasource is set to an instance of OrderTotalContainer, OrderTotalContainer.OrderTotals is a list of OrderTotal types one entry for each day the report covers.
I'd like a line graph with two series, X axis being the date stored in OrderTotal.Date, Y axis being a simple numerical axis, one series using OrderTotal.ImportedCount, the other using OrderTotal.TotalDispatches.
01.
public
class
OrderTotalContainer
02.
{
03.
public
List<OrderTotal> OrderTotals {
get
;
set
; }
04.
}
05.
06.
public
class
OrderTotal
07.
{
08.
public
DateTime Date {
get
;
set
; }
09.
public
Int64 ImportedCount {
get
;
set
; }
10.
public
List<DispatchCount> DispatchCounts {
get
;
set
; }
11.
public
Int64 TotalDispatches {
get
;
set
; }
12.
}
13.
14.
public
class
DispatchCount{
15.
public
string
Courier {
get
;
set
; }
16.
public
Int64 Count {
get
;
set
; }
17.
}
The reports datasource is set to an instance of OrderTotalContainer, OrderTotalContainer.OrderTotals is a list of OrderTotal types one entry for each day the report covers.
I'd like a line graph with two series, X axis being the date stored in OrderTotal.Date, Y axis being a simple numerical axis, one series using OrderTotal.ImportedCount, the other using OrderTotal.TotalDispatches.