From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,150 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,138 Views)