AxisScaleStyle     Procedure (Sub)

Public Sub AxisScaleStyle(Optional Value1 As Double = 0, Optional Value2 As Double = 0, Optional MajorDivs As Integer, Optional MinorDivs As Integer, Optional ScaleStyle As Integer = -1, Optional TextLabels$ = "")

Specify the scale of the currently-selected axis.

ParameterTypeDescription

Value1

Double

Minimum value on axis

Value2

Double

Maximum value on axis

MajorDivs

Integer

Number of major divisions along axis

MinorDivs

Integer

Number of minor divisions along axis

ScaleStyle

Integer

0=auto, 1=fixed range, 2=text labels. When ScaleStyle=1 you may find too many decimal places are printed along the axis, especially when zooming. In this case set TextLabels="0.###" or something similar for controlled formatting along the axis.

TextLabels$

String

If ScaleStyle=2 then this holds a list of text labels , eg "Jan,Feb,Mar, (etc)", Printed along axis at each major division. If ScaleStyle is any other value and TextLabels$ is not blank, then TextLabels$ is used as a format string to override the internal "smart format" for numbers. Use this option to print dates and times along the axis, or for special formatting needs. See Demo7 and Demo13.

Example

Call ecGraph1.AxisScaleStyle(value1, value2, majordivs, minordivs, scalestyle, textlabels) 


      Contents     Variables     Events     Properties     Functions     Subs

Copyright © 2007, Encore Consulting Pty Ltd