YScale

[method icon] YScale(iIndex, sText$)

Scaling labels for y-axis

iIndex Integer
sText$ String

Applies to: Graph

Introduced in KCML version 6.00


>

YScale

The YScale() method is used to provide y-axis labelling and scaling information. Scaling is important where values may be large, and for instance, it would be better to have a y-axis label that was "millions", and the tick values to be displayed in millions rather than the actual value.

Repeated use of the method allows several different y-axis labels to be specified, each with a different scale; the graph chooses the appropriate scale and label based on the graph data. The first parameter is the scale (0 for no-scaling, 3 for thousand, 6 for millions and so on). For example, to display monetary values scaled appropriately, the following would be used:

 .graphcontrol1.YScale(0,"$")
 .graphcontrol1.YScale(3,"$Thousands")
 .graphcontrol1.YScale(6,"$Millions")
 .graphcontrol1.YScale(9,"$Billions")

See also

Graph methods, properties and events.