This documentation is archived and is not being maintained.

DataPoint Object

Visual Studio .NET 2003

A member of the DataPoints collection that describes the attributes of an individual data point on a chart.

Syntax

DataPoint

Remarks

The DataPoints collection is accessed through the SeriesCollection object.

Caution   The DataPoints collection contains only one member at this time. To access it, you must use the –1, as shown below:
MSChart1.Plot.SeriesCollection(1).DataPoints(-1) _
.Brush.FillColor.Set 0, 255, 255

Example

The following example assigns a variable to a data point and sets the data point color and marker.

Private Sub Command1_Click()
   ' Change the color and marker of First DataPoint in 
   ' the First Series.
   With MSChart1.Plot.SeriesCollection(1).DataPoints(-1)
      ' Change Data Point color to blue.
      .Brush.Style = VtBrushStyleSolid
      ' Set Color=Blue.
      .Brush.FillColor.Set 0, 255, 255 
      ' Set DataPoint marker visible.
      .Marker.Visible = True
   End With
End Sub

See Also

Properties, Methods, and Events | Brush Object | DataPointLabel Object | DataPoints Collection | DataPoints Property

Show: