How to draw graph with line draw

gkumar

Active Member
Licensed User
Longtime User
How to draw graph with line draw? I need to design a graph with multiple line indicators in the graph for different parameters? Is there any sample available for this?
 

klaus

Expert
Licensed User
Longtime User
Sorry, but I don't understand what exactly you want to do.
Did you have a look at the Charts Framework ?
There are chapters on drawing in the Beginner's Guide and in the User's Guide, the Charts Framework is explained in the User's Guide.

Best regards.
 
Upvote 0

cyiwin

Active Member
Licensed User
Longtime User
Hello, I'm new here but I just made a simple graph with DrawLine. Nothing fancy but here is what I did:
........................................................................................
Sub Globals

Dim i As Int
Dim CanvasGraph As Canvas
Dim ImageGraph As ImageView

End Sub

Sub MyGraph

ImageGraph.Initialize("ImageGraph")
Activity.AddView(ImageGraph,0,0,100&x,55%y)
CanvasGraph.Initialize(ImageGraph)
CanvasGraph.DrawColor(Colors.LightGray)

For i=1 To 336 Step 16
CanvasGraph.DrawLine(i+16,20,i+16,337,Colors.Black,.99dip)
CanvasGraph.DrawLine(20,i+16,337,i+16,Colors.Black,.99dip)
Next

End Sub
..........................................................................................

It took a little trial and error to get the values to work for me...
 
Upvote 0
Top