The information in this article applies to:
SUMMARYYou can use the Graph custom control (GRAPH.VBX) XPosData property to give independent X-axis values for graphs. That is, the graph is not forced to plot on the X-axis, and has the ability to plot fractional data points between X-axis values. This property can be used with all graphs types except pie. MORE INFORMATIONBy default, graphs use a dependent X-axis scale. This means data points plotted conform to the whole-number increments shown on the X- axis. To plot fractional X-axis values, use the XPosData property. The XPosData values are set for each data point, allowing fractional X-axis plotted values to appear in the graph. XPosData sets the X coordinate, and GraphData sets the Y coordinate. The example below demonstrates this by plotting three different data points on a scatter graph: Example
(.2, 10), (1.3, 5), (2.4, 3)XPosData works for other graph types too, except pie, for which X-axis data has no meaning. To try this example with another graph type, change the GraphType property of Grid1 to "4 - 3D Bar". Notice how the bars orient against the X-axis when you run the code. Additional query words: 2.00 3.00
Keywords : |
Last Reviewed: September 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |