Use this property to return/set a value that determines the
background color the chart area will be displayed in.
Value is a long integer. You may also use the RGB function to set
the color. Default: &HC0C0C0 (i.e Light Grey).
Example
longValue = XYChartCtrl.BackColor 'Returns
the chart's background color
XYChartCtrl.BackColor =
RGB(0,0,0) 'Three different methods
for setting the chart's
XYChartCtrl.BackColor =
vbBlack 'background
color to Black
XYChartCtrl.BackColor = &h00
XYChartCtrl.BackColor = RGB(0,0,255) 'Three
different methods for setting the chart's
XYChartCtrl.BackColor =
vbBlue 'background
color to Blue
XYChartCtrl.BackColor = &hFF0000
XYChartCtrl.BackColor = RGB(0,255,0) 'Three
different methods for setting the chart's
XYChartCtrl.BackColor =
vbGreen 'background
color to Green
XYChartCtrl.BackColor = &hFF00
XYChartCtrl.BackColor = RGB(255,0,0) 'Three
different methods for setting the chart's
XYChartCtrl.BackColor =
vbRed 'background
color to Red
XYChartCtrl.BackColor = &hFF
XYChartCtrl.BackColor = RGB(255,255,255) 'Three different methods
for setting the chart's
XYChartCtrl.BackColor =
vbWhite 'background
color to White
XYChartCtrl.BackColor = &hFFFFFF
XYChartCtrl.Refresh 'Refresh required to update
chart with
changes made
See
Also