DataPoint Object 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