AxisScale Object
The document is archived and information here might be outdated

AxisScale Object

Visual Studio .NET 2003

Controls how chart values are plotted on an axis.

Syntax

AxisScale

Example

The following examples sets the x and y axes to a percent scale for a two-dimensional line chart. To try the example, draw an MSChart and a CommandButton control on a form. Paste the code into the Form object's code module and run the project.

Private Sub Command1_Click()
   ' Change both x and y axes to Percent scale for 2D
   ' Line chart.
   Dim axisID As VtChAxisId
   MSChart1.ChartType = VtChChartType2dLine
   For AxisId = VtChAxisIdX To VtChAxisIdY
      With MSChart1.Plot.Axis(AxisId).AxisScale
         .Type = VtChScaleTypePercent
         .PercentBasis = VtChPercentAxisBasisSumChart
      End With
   Next
End Sub

See Also

Properties, Methods, and Events | Axis Object | AxisScale Property

Show:
© 2016 Microsoft