Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw a line on a scattergraph in VB.net

Hello,
 
Just wandering how to draw a vertical line on a scattergraph in VB.net.
 
Say from (1,0) to (1,10)
 
 
Thank you
0 Kudos
Message 1 of 2
(3,519 Views)
Hi, Joe,

Try this:

        Dim x(10) As Double
        Dim y(10) As Double
        For j As Integer = 0 To 10
            x(j) = 1
            y(j) = j
        Next
        xyDataScatterGraph.PlotXY(x, y)

Song D
Regards,

Song Du
Systems Software
National Instruments R&D
0 Kudos
Message 2 of 2
(3,507 Views)