index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP SimpleGraph |
| |||||||
May 19 2004, 9:59 AM |
| ||||||
whichman from: Laurel, MD | The GetGraph function just returns the graph as an HTML text string. Make sure that you do not add any NULL values in to the graph. I will forward this bug. However, try this: <% If objRS.EOF Then 'no records returned Else Do While Not objRS.EOF Call objGraph.AddRowData(objRS( "ProductName" ) & "", _ ParseDbl(objRS( "Weight" ) & "" )) objRS.MoveNext Loop objRS.Close With ObjGraph 'Add some variables objGraph.XScaleValues = "Product" objGraph.xALign = "center" objGraph.yLabel = "Weight" objGraph.Title = "Product Weights" End With objGraph.Draw 'or 'Response.Write(objGraph.GetGraph) End If Function ParseDbl(ByVal s) If IsNumeric (s) Then ParseDbl=CDbl(s) Else ParseDbl=0 End Function %> ------------------------- Master of the Game | ||||||
Pages: (1) [1] |