X/Y scaling with MSChart type 2dXY
Posted on 2009-07-03
VB6: My application produces an X/Y plot of data. I am using MSChart type 2dXY. The "autoscale" is enabled.
The X and Y axes evidently are scaled identically. This means that, if the span of data for X, and that for Y, are not equal, the plot is not a square.
The span of data to be plotted varies.
My X data ranges from 0 to perhaps 1000. My Y data typically goes from 0 to 100 or 200.
This produces a really "squished" picture.
I would like to specify the actual screen dimensions of the plot, no matter how the scale numbers are autoscaled. Is this possible?
This is a simple plot, and it occurred to me that I could take the trouble to write the code to do my own plot. But it would be easier to use MSChart, if I could force it to the screen dimensions I want.