Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Xaxis display in graph

I would like to draw a graph with data which can be + or - for both X abd
Y value. I am able to plot in graphXvsY but i would like to show X axis and
Y axis line which will be like a cross hair so it is easier to read which
quadrant the data is. Can you show me how can I show a lines as x and Y axis
in the middle of graph deviding graph area in four quadrants.
Thanks
Jay Gosalia
0 Kudos
Message 1 of 2
(3,500 Views)
If I understand you correctly this can be achieved using cursors.

Add a cursor to the graph (this can be done through the cursor tab in the properties page). Set the crosshair style to Major X & Major Y. Set the color to whatever you want it to be. Set the Point style to Cross. UNCHECK "enabled" so that the cursors cannot be dragged.

After you send the data to the graph simply add this line of code.

CWGraph1.Cursors(1).SetPosition 0, 0

The cursors should now represent the x and y axis.

Attached is a simple example.

Hope this is answers your question.

Kevin
Download All
0 Kudos
Message 2 of 2
(3,500 Views)