graph.vbx and setting my own x axis values 
Author Message
 graph.vbx and setting my own x axis values

I have been trying to use the GRAPH.VBX component in VB and am trying
to plot a curve with the X axis values going from 5000 to 7000.  The X
values labels go from 0 to 8000 and I haven't been able to find a way
to override this.  Any ideas would be  appreciated.  Or the
recommendation of another graph VBX/OCX would be desired.

                                Bernie Borenstein
                                Douglas Aircraft



Sat, 06 Mar 1999 03:00:00 GMT  
 graph.vbx and setting my own x axis values

BB>I have been trying to use the GRAPH.VBX component in VB and am trying
BB>to plot a curve with the X axis values going from 5000 to 7000.  The
BB>X values labels go from 0 to 8000 and I haven't been able to find a
BB>way to override this.  Any ideas would be  appreciated.  Or the
BB>recommendation of another graph VBX/OCX would be desired.

The following was stripped from my working code:
  .
  .
'Load the values into the X-axis from a field in tblFltData
   tblFltData.MoveFirst
   graData(idxSetup).ThisPoint = 1
   For cntPointNum = 1 To graData(idxSetup).NumPoints
      graData(idxSetup).ThisPoint = cntPointNum
      graData(idxSetup).XPosData = tblFltData(lstX.List(lstX.ListIndex))
      tblFltData.MoveNext
   Next cntPointNum
  .
  .
Written on 09/17/96


|Phx, Az  | Fido: 1:114/237   Rime: INNPARK/1037    CI$:75712,3674 |

t CMPQwk 1.42 1561 t... Farfignewton...the cookie of the stars ....



Sun, 07 Mar 1999 03:00:00 GMT  
 graph.vbx and setting my own x axis values

Quote:

> I have been trying to use the GRAPH.VBX component in VB and am trying
> to plot a curve with the X axis values going from 5000 to 7000.  The X
> values labels go from 0 to 8000 and I haven't been able to find a way
> to override this.  Any ideas would be  appreciated.  Or the
> recommendation of another graph VBX/OCX would be desired.

>                                 Bernie Borenstein
>                                 Douglas Aircraft

I'm not sure what you are doing, but I have been working with the
graph.vbx lately and have gotten some insight.  If you are trying to put
labels on the X axis you need to use the LabelText property.  Set
ThisPoint to the point you want the label to appear, and set
graph.LabelText = "label".

for i = 0 to graph.NumPoints step <how close you want the labels to be>
        graph.ThisPoint = i
        graph.LabelText = cstr(<label value>)
next i

If you use the same graph several times without unloading it you will
need to clear the graph data and label data in between uses. Just make a
loop to step through all the ThisPoint's and set them to null.  That is a
good place to use AutoInc.

Good Luck
Bill Gill



Sun, 07 Mar 1999 03:00:00 GMT  
 graph.vbx and setting my own x axis values

Quote:

> I have been trying to use the GRAPH.VBX component in VB and am trying
> to plot a curve with the X axis values going from 5000 to 7000.  The X
> values labels go from 0 to 8000 and I haven't been able to find a way
> to override this.  Any ideas would be  appreciated.  Or the
> recommendation of another graph VBX/OCX would be desired.

>                                 Bernie Borenstein
>                                 Douglas Aircraft

I'm not sure what you are doing, but I have been working with the
graph.vbx lately and have gotten some insight.  If you are trying to put
labels on the X axis you need to use the LabelText property.  Set
ThisPoint to the point you want the label to appear, and set
graph.LabelText = "label".

for i = 0 to graph.NumPoints step <how close you want the labels to be>
        graph.ThisPoint = i
        graph.LabelText = cstr(<label value>)
next i

If you use the same graph several times without unloading it you will
need to clear the graph data and label data in between uses. Just make a
loop to step through all the ThisPoint's and set them to null.  That is a
good place to use AutoInc.

Good Luck
Bill Gill



Sun, 07 Mar 1999 03:00:00 GMT  
 graph.vbx and setting my own x axis values

Quote:

> I have been trying to use the GRAPH.VBX component in VB and am trying
> to plot a curve with the X axis values going from 5000 to 7000.  The X
> values labels go from 0 to 8000 and I haven't been able to find a way
> to override this.  Any ideas would be  appreciated.  Or the
> recommendation of another graph VBX/OCX would be desired.

>                                 Bernie Borenstein
>                                 Douglas Aircraft

The graph.vbx that ships with VB is a 'light' version, that doesn't,
amongst other things, allow you to control the x axis fully. I think
you'll have to get hold of the full version.
HTH
Ken

----------------------------------------------------------------------

Applications Programmer/Network Manager  Phone : (+44) (0)1865 224149
Diabetes Research, RI, Oxford, England     Fax : (+44) (0)1865 723884



Mon, 08 Mar 1999 03:00:00 GMT  
 graph.vbx and setting my own x axis values

: >
: > I have been trying to use the GRAPH.VBX component in VB and am trying
: > to plot a curve with the X axis values going from 5000 to 7000.  The X
: > values labels go from 0 to 8000 and I haven't been able to find a way
: > to override this.  Any ideas would be  appreciated.  Or the
: > recommendation of another graph VBX/OCX would be desired.

: >
: >                                 Bernie Borenstein
: >                                 Douglas Aircraft

: The graph.vbx that ships with VB is a 'light' version, that doesn't,
: amongst other things, allow you to control the x axis fully. I think
: you'll have to get hold of the full version.
: HTH
: Ken

I have experienced the same problem on the software I am developping.  I
agree with Ken and I strongly suggest that you purchase the Commercial
version of the Graphics Server.  Pinnacle has made a control, it's very
fast and the commercial version allows you to do lots of things you
thought impossible before...  We switched and would never go back to the
old version...

Hope this helps...

Eric

--
***********************************************************

***********************************************************



Fri, 12 Mar 1999 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. GRAPH.VBX : X axis

2. Graph.vbx : Y axis range

3. Code to set Chart Y Axis value - Reply to SteveT

4. Setting min and max values on chart's y-axis

5. Code to set Chart Y Axis value needed

6. MSCHART - How do you set the lowest y-axis value

7. set axis to fixed value in mschart?

8. Problem with Graph Custom Control GRAPH.VBX

9. graph.vbx -> x axis setting??

10. graph x en y axis adjusting

11. Automating Graph X Axis Scales

12. axis properties in ms graph

 

 
Powered by phpBB® Forum Software