Profile

 

An individual graph line plotted on the XY Chart control is referred to as a Profile.

Use this property to return/set values that determines the Profile's display characteristics.  Recall that up to 8000 profiles can be configured to be plotted on the same XY Chart control.   This upper bound can be set through the NumProfiles property.

Profile is an array from 1 to NumProfiles and it uses the Profile Class set of properties for its characteristics.

 

Example

With XYChartCtrl
    .NumProfiles = 6                   'Set the number of profiles to plot to 6
    .NumYScales = 3                    'Set the number of y-axis scales to 3
    .DispLegend = TRUE                 'Allow the Legend frame to be displayed

    .Profile(1).YScale = 1             'Profile 1 uses Y-axis scale 1
    .Profile(1).LineColor = vbRed      'Profile 1 will be displayed in Red
    .Profile(1).MarkerOption = FALSE   'Profile 1 will not display any markers for it's individual datapoints

    .Profile(2).YScale = 1             'Profile 2 uses Y-axis scale 1
    .Profile(2).LineColor = vbBlue     'Profile 2 will be displayed in Blue
    .Profile(2).MarkerOption = FALSE   'Profile 2 will not display any markers for it's individual datapoints

    .Profile(3).YScale = 2             'Profile 3 uses Y-axis scale 2
    .Profile(3).LineColor = vbGreen    'Profile 3 will be displayed in Green
    .Profile(3).MarkerOption = FALSE   'Profile 3 will not display any markers for it's individual datapoints

    .Profile(4).YScale = 2             'Profile 4 uses Y-axis scale 2
    .Profile(4).LineColor = vbRed      'Profile 4 will be displayed in Red
    .Profile(4).MarkerOption = TRUE    'Profile 4 will display markers for it's individual datapoints
    .Profile(4).MarkerStyle = msCircle 'Profile 4 will display markers (circles) for it's individual datapoints

    .Profile(5).YScale = 3             'Profile 5 uses Y-axis scale 3
    .Profile(5).LineColor = vbBlue     'Profile 5 will be displayed in Blue
    .Profile(5).MarkerOption = TRUE    'Profile 5 will display markers for it's individual datapoints
    .Profile(5).MarkerStyle = msCircle 'Profile 5 will display markers (circles) for it's individual datapoints

    .Profile(6).YScale = 3             'Profile 6 uses Y-axis scale 3
    .Profile(6).LineColor = vbGreen    'Profile 6 will be displayed in Green
    .Profile(6).MarkerOption = TRUE    'Profile 6 will display markers for it's individual datapoints
    .Profile(6).MarkerStyle = msCircle 'Profile 6 will display markers (circles) for it's individual datapoints

    .Refresh                           'Refresh required to update chart with changes made
End With

 

See Also

Properties    Profiles property page