I wish this forum had the capabilities to include attachments with the messages.... But, I'll try to map it out in text. I created a table with Name, day and hours. My design was as follows:
ReportRoot
-Content-ReportSection
-Connection
-DataStream
-DataRow
-Content - Frame
-DetailGraph
DetailGraph has the following properties:
ChartTpeSpecific -
ChartType: ChartLine
ShowLines: True
ShowSymbols: True
Expressions -
SeriesExp: [Table1.Name]
XLabelExp: [Table1.Day]
XValueExp: [Table1.Day]
YValueExp: [Table1.hours]
Finally, you'll need to create a couple static variables to
1. Check current group key to previous group key (name)
2. Accumulate your hours
What I did was create a global, FirstTime, initialized to True. In the DataRow OnRead( ) I have:
Sub OnRead( )
Super::OnRead( )
' Insert your code here
Static HourAccum As Integer
Static KeyVal AS String
If FirstTime Then
FirstTime = False
KeyVal = Table1_Name
End If
If KeyVal = Table1_Name Then
HourAccum = HourAccum + Table1_Hours
Table1_Hours = HourAccum
Else
HourAccum = Table1_Hours
KeyVal = Table1_Name
End If
End Sub
Needless to say the code is crude, but for an example... what can I say? You may want to consider doing this in your Fetch( ) method instead, depending on the complexity of your code and what additional things you may need to do.
See if this can get you in the right direction at least. This provided a chart with lines which (of course) increased as they progressed.
Bill