%@ LANGUAGE="VBScript" %> <% start_time = Time %>
<%
'
' Do heavy duty database extraction here
'
Set RS1 = Connection.Execute(SQLStmt1)
npoints=0
Do While Not RS1.EoF
'
Channel(npoints)=CInt(RS1("CH"))
Numhits(npoints)=CDbl(RS1("HITS"))
npoints=npoints+1
RS1.MoveNext
Loop
npoints=npoints-1
If npoints>0 Then
%> <% start_time = Time %> <%
'
' Prepare plot
'
seed=-(second(now())+60*minute(now())+3600*hour(now())+3600*24*day(now()))
filename="hitsrc" & cstr(int(100000.*rnd(seed))) & ".jpg"
filename_full=ph_image_directory & filename
%> <%
Dim Chart
Dim Color(8)
Color(0) = vbRed
Color(1) = vbBlue
Color(2) = vbYellow
Color(3) = vbGreen
Color(4)= vbMagenta
Color(5)= vbCyan
Color(6)= vbWhite
Color(7)= vbBlack
rem **********************************************************************
rem * Instantiate the Chart component
rem **********************************************************************
Set Chart = Server.CreateObject ("ASPChart.Chart")
rem **********************************************************************
rem * Create x Array
rem **********************************************************************
Chart.AddSeries 5
Chart.SeriesTitle = "Hit Profile"
Chart.LineWidth = 1
Chart.Stairs = True
Chart.SeriesInLegend = true
min_x=-1
max_x=-1
max_y=-1
For ipoints=0 To npoints
Chart.AddXY Channel(ipoints),Numhits(ipoints),"",Color(1)
If min_x>Channel(ipoints) or min_x=-1 Then
min_x=Channel(ipoints)
End If
If max_x |
![]() |
Both ROWID's are empty ! <%End If%> |