BCGSuite for MFC
void CBCGPChartVisualObject::SetLegendPosition ( BCGPChartLayout::LegendPosition  position = BCGPChartLayout::LP_RIGHT,
BOOL  bLegendOverlapsChart = FALSE,
BOOL  bRedraw = FALSE 
)

Sets legend position or hides it.

Call this method to set legend position. position can be one of the following enumerated values:

Set bLegendOverlapsChart to TRUE to save the diagram space.

Parameters
positionSpecifies the legend position.
bLegendOverlapsChartSpecifies whether the legend overlaps diagram area, or not.
bRedrawTRUE - redraw the Chart immediately.