Visual Basic: MSChart Control

Fill Object Example

The following example sets a gradient backdrop for a chart using the Fill object.

Private Sub Command1_Click()
   With MSChart1.backdrop.Fill
      ' Set a brush pattern backdrop.
      .Style = VtFillStyleBrush
      .Brush.Style = VtBrushPattern50Percent
   End With
End Sub
Show: